aboutsummaryrefslogtreecommitdiff
path: root/src/tests/taf.cpp
blob: e7bad526273b49ea71370611e01adb1fa9fcdce3 (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->getNode("stats");
	printf("%s\n", pStats->getName().getStr() );
	printf("  str = %s\n", pStats->getProperty("str").getStr() );

	delete pNode;
}