summaryrefslogtreecommitdiff
path: root/src/tests/taf.cpp
blob: d135e78ea63a73a65f274dfd2226f210ef72b16d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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 *pStats = pNode->getChild("stats");
	printf("%s\n", pStats->getName().getStr() );
	printf("  str = %s\n", pStats->getProperty("str").getStr() );

	delete pNode;
}