diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-07 04:55:29 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-07 04:55:29 +0000 |
commit | c2e3879b965d297604804f03271ac71c8c5c81f3 (patch) | |
tree | e3abe738a7aca61fc0bfa88866d88b7d345258fd /src/tests/taf.cpp | |
parent | 0e41e5b6c004f695013d65f71c4223e2540d1391 (diff) | |
download | libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.tar.gz libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.tar.bz2 libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.tar.xz libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.zip |
The new taf interfaces seem to work just fine, except for saving and that loaded
TafNode structures are immutable, it all looks really good. Saving should be a
snap, and the immutable part I'm not sure is bad...we'll see what happens.
Also, I'm contemplating looking into a way to add "named data structure" support
to the Archive at a lower level, then allow it to use a nameing system to apply
names to each data structure and then output to any backend that supports
naming, like taf, xml, etc.
Diffstat (limited to 'src/tests/taf.cpp')
-rw-r--r-- | src/tests/taf.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tests/taf.cpp b/src/tests/taf.cpp index f7af2b2..e7bad52 100644 --- a/src/tests/taf.cpp +++ b/src/tests/taf.cpp | |||
@@ -8,12 +8,9 @@ int main() | |||
8 | 8 | ||
9 | Bu::TafNode *pNode = tr.getNode(); | 9 | Bu::TafNode *pNode = tr.getNode(); |
10 | 10 | ||
11 | const Bu::TafNode::NodeList &l = pNode->getNode("stats"); | 11 | const Bu::TafNode *pStats = pNode->getNode("stats"); |
12 | for( Bu::TafNode::NodeList::const_iterator i = l.begin(); | 12 | printf("%s\n", pStats->getName().getStr() ); |
13 | i != l.end(); i++ ) | 13 | printf(" str = %s\n", pStats->getProperty("str").getStr() ); |
14 | { | ||
15 | printf("%s\n", (*i)->getName().getStr() ); | ||
16 | } | ||
17 | 14 | ||
18 | delete pNode; | 15 | delete pNode; |
19 | } | 16 | } |