summaryrefslogtreecommitdiff
path: root/src/tests/taf.cpp
blob: f7af2b2f6ce9e72d24c4461fb06d0694d4a52479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "bu/tafreader.h"
#include "bu/file.h"

int main()
{
	Bu::File f("test.taf", "rb");
	Bu::TafReader tr( f );

	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() );
	}

	delete pNode;
}