aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-07 03:26:43 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-07 03:26:43 +0000
commit8b598e8436a7110abbd0a7566138bcaa952bb527 (patch)
tree9939beb03fb606e3f9dc3ff8ac04ed3725008ac6 /src/tests
parent1f785c99b4e9e76d6803bd66cc4256e9b03fa788 (diff)
downloadlibbu++-8b598e8436a7110abbd0a7566138bcaa952bb527.tar.gz
libbu++-8b598e8436a7110abbd0a7566138bcaa952bb527.tar.bz2
libbu++-8b598e8436a7110abbd0a7566138bcaa952bb527.tar.xz
libbu++-8b598e8436a7110abbd0a7566138bcaa952bb527.zip
Except for an excessive amount of debug info, I finally got the delete code
working. Now you can load Taf structures and clean up, you just can't access all of the data inside 100%.
Diffstat (limited to '')
-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