aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tafreader.cpp2
-rw-r--r--src/tests/taf.cpp8
2 files changed, 6 insertions, 4 deletions
diff --git a/src/tafreader.cpp b/src/tafreader.cpp
index db465e9..0d28cd0 100644
--- a/src/tafreader.cpp
+++ b/src/tafreader.cpp
@@ -49,6 +49,8 @@ void Bu::TafReader::groupContent( Bu::TafGroup *pGroup )
49 return; 49 return;
50 else if( c == '/' && la == '*' ) 50 else if( c == '/' && la == '*' )
51 pGroup->addChild( readComment() ); 51 pGroup->addChild( readComment() );
52 else if( c == ':' )
53 throw TafException("Encountered stray ':' in taf stream.");
52 else 54 else
53 pGroup->addChild( readProperty() ); 55 pGroup->addChild( readProperty() );
54 } 56 }
diff --git a/src/tests/taf.cpp b/src/tests/taf.cpp
index e3da120..cb9b75f 100644
--- a/src/tests/taf.cpp
+++ b/src/tests/taf.cpp
@@ -8,16 +8,16 @@ int main()
8 Bu::TafReader tr( f ); 8 Bu::TafReader tr( f );
9 9
10 Bu::TafGroup *pGroup = tr.readGroup(); 10 Bu::TafGroup *pGroup = tr.readGroup();
11 11/*
12 const Bu::TafGroup *pStats = pGroup->getChild("stats"); 12 const Bu::TafGroup *pStats = pGroup->getChild("stats");
13 printf("%s\n", pStats->getName().getStr() ); 13 printf("%s\n", pStats->getName().getStr() );
14 printf(" str = %s\n", pStats->getProperty("str").getStr() ); 14 printf(" str = %s\n", pStats->getProperty("str").getStr() );*/
15 15/*
16 { 16 {
17 Bu::File fo("out.taf", "wb"); 17 Bu::File fo("out.taf", "wb");
18 Bu::TafWriter tw( fo ); 18 Bu::TafWriter tw( fo );
19 tw.writeGroup( pGroup ); 19 tw.writeGroup( pGroup );
20 } 20 }*/
21 21
22 delete pGroup; 22 delete pGroup;
23} 23}