From c2e3879b965d297604804f03271ac71c8c5c81f3 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 7 Jun 2007 04:55:29 +0000 Subject: 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. --- src/tests/taf.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/tests/taf.cpp') 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() Bu::TafNode *pNode = tr.getNode(); - const Bu::TafNode::NodeList &l = pNode->getNode("stats"); - for( Bu::TafNode::NodeList::const_iterator i = l.begin(); - i != l.end(); i++ ) - { - printf("%s\n", (*i)->getName().getStr() ); - } + const Bu::TafNode *pStats = pNode->getNode("stats"); + printf("%s\n", pStats->getName().getStr() ); + printf(" str = %s\n", pStats->getProperty("str").getStr() ); delete pNode; } -- cgit v1.2.3