summaryrefslogtreecommitdiff
path: root/src/tafnode.h
blob: e962e8823e1ccc04bd2a63f1da8cc9220b4be5fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef BU_TAF_NODE_H
#define BU_TAF_NODE_H

#include <stdint.h>
#include "bu/fstring.h"
#include "bu/hash.h"
#include "bu/list.h"

namespace Bu
{
	/**
	 *
	 */
	class TafNode
	{
	public:
		typedef Bu::List<Bu::FString> PropList;
		typedef Bu::Hash<Bu::FString, PropList> PropHash;
		typedef Bu::List<TafNode *> NodeList;
		typedef Bu::Hash<Bu::FString, NodeList> NodeHash;

	public:
		TafNode();
		virtual ~TafNode();

		void setProperty( Bu::FString sName, Bu::FString sValue );
		const PropList &getProperty( const Bu::FString &sName );

	private:
		Bu::FString sName;
		PropHash hProp;
		NodeHash hChildren;
	};
}

#endif