aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/taf.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/taf.cpp b/src/tests/taf.cpp
index 12c653e..f7af2b2 100644
--- a/src/tests/taf.cpp
+++ b/src/tests/taf.cpp
@@ -5,5 +5,16 @@ int main()
5{ 5{
6 Bu::File f("test.taf", "rb"); 6 Bu::File f("test.taf", "rb");
7 Bu::TafReader tr( f ); 7 Bu::TafReader tr( f );
8
9 Bu::TafNode *pNode = tr.getNode();
10
11 const Bu::TafNode::NodeList &l = pNode->getNode("stats");
12 for( Bu::TafNode::NodeList::const_iterator i = l.begin();
13 i != l.end(); i++ )
14 {
15 printf("%s\n", (*i)->getName().getStr() );
16 }
17
18 delete pNode;
8} 19}
9 20