aboutsummaryrefslogtreecommitdiff
path: root/src/tafnode.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tafnode.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/tafnode.h b/src/tafnode.h
index 34f5289..e962e88 100644
--- a/src/tafnode.h
+++ b/src/tafnode.h
@@ -2,6 +2,9 @@
2#define BU_TAF_NODE_H 2#define BU_TAF_NODE_H
3 3
4#include <stdint.h> 4#include <stdint.h>
5#include "bu/fstring.h"
6#include "bu/hash.h"
7#include "bu/list.h"
5 8
6namespace Bu 9namespace Bu
7{ 10{
@@ -11,11 +14,23 @@ namespace Bu
11 class TafNode 14 class TafNode
12 { 15 {
13 public: 16 public:
17 typedef Bu::List<Bu::FString> PropList;
18 typedef Bu::Hash<Bu::FString, PropList> PropHash;
19 typedef Bu::List<TafNode *> NodeList;
20 typedef Bu::Hash<Bu::FString, NodeList> NodeHash;
21
22 public:
14 TafNode(); 23 TafNode();
15 virtual ~TafNode(); 24 virtual ~TafNode();
16 25
17 private: 26 void setProperty( Bu::FString sName, Bu::FString sValue );
27 const PropList &getProperty( const Bu::FString &sName );
18 28
29 private:
30 Bu::FString sName;
31 PropHash hProp;
32 NodeHash hChildren;
19 }; 33 };
20} 34}
35
21#endif 36#endif