aboutsummaryrefslogtreecommitdiff
path: root/src/tests/taf.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tests/taf.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/tests/taf.cpp b/src/tests/taf.cpp
index e4354f7..0ba551f 100644
--- a/src/tests/taf.cpp
+++ b/src/tests/taf.cpp
@@ -10,35 +10,35 @@
10 10
11int main( int argc, char *argv[] ) 11int main( int argc, char *argv[] )
12{ 12{
13 if( argc == 1 ) 13 if( argc == 1 )
14 { 14 {
15 Bu::File f("test.taf", Bu::File::Read ); 15 Bu::File f("test.taf", Bu::File::Read );
16 Bu::TafReader tr( f ); 16 Bu::TafReader tr( f );
17 17
18 Bu::TafGroup *pGroup = tr.readGroup(); 18 Bu::TafGroup *pGroup = tr.readGroup();
19 19
20 { 20 {
21 Bu::File fo("out.taf", Bu::File::Write|Bu::File::Create ); 21 Bu::File fo("out.taf", Bu::File::Write|Bu::File::Create );
22 Bu::TafWriter tw( fo ); 22 Bu::TafWriter tw( fo );
23 tw.writeGroup( pGroup ); 23 tw.writeGroup( pGroup );
24 } 24 }
25 25
26 delete pGroup; 26 delete pGroup;
27 } 27 }
28 else if( argc == 3 ) 28 else if( argc == 3 )
29 { 29 {
30 Bu::File f( argv[1], Bu::File::Read ); 30 Bu::File f( argv[1], Bu::File::Read );
31 Bu::TafReader tr( f ); 31 Bu::TafReader tr( f );
32 32
33 Bu::TafGroup *pGroup = tr.readGroup(); 33 Bu::TafGroup *pGroup = tr.readGroup();
34 34
35 { 35 {
36 Bu::File fo( argv[2], Bu::File::Write|Bu::File::Create ); 36 Bu::File fo( argv[2], Bu::File::Write|Bu::File::Create );
37 Bu::TafWriter tw( fo ); 37 Bu::TafWriter tw( fo );
38 tw.writeGroup( pGroup ); 38 tw.writeGroup( pGroup );
39 } 39 }
40 40
41 delete pGroup; 41 delete pGroup;
42 } 42 }
43} 43}
44 44