diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-07 04:55:29 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-07 04:55:29 +0000 |
commit | c2e3879b965d297604804f03271ac71c8c5c81f3 (patch) | |
tree | e3abe738a7aca61fc0bfa88866d88b7d345258fd /src/tafnode.h | |
parent | 0e41e5b6c004f695013d65f71c4223e2540d1391 (diff) | |
download | libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.tar.gz libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.tar.bz2 libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.tar.xz libbu++-c2e3879b965d297604804f03271ac71c8c5c81f3.zip |
The new taf interfaces seem to work just fine, except for saving and that loaded
TafNode structures are immutable, it all looks really good. Saving should be a
snap, and the immutable part I'm not sure is bad...we'll see what happens.
Also, I'm contemplating looking into a way to add "named data structure" support
to the Archive at a lower level, then allow it to use a nameing system to apply
names to each data structure and then output to any backend that supports
naming, like taf, xml, etc.
Diffstat (limited to 'src/tafnode.h')
-rw-r--r-- | src/tafnode.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tafnode.h b/src/tafnode.h index a570d2d..10232d2 100644 --- a/src/tafnode.h +++ b/src/tafnode.h | |||
@@ -24,11 +24,13 @@ namespace Bu | |||
24 | virtual ~TafNode(); | 24 | virtual ~TafNode(); |
25 | 25 | ||
26 | void setName( const Bu::FString &sName ); | 26 | void setName( const Bu::FString &sName ); |
27 | const Bu::FString &getName(); | 27 | const Bu::FString &getName() const; |
28 | 28 | ||
29 | void setProperty( Bu::FString sName, Bu::FString sValue ); | 29 | void setProperty( Bu::FString sName, Bu::FString sValue ); |
30 | const PropList &getProperty( const Bu::FString &sName ); | 30 | const Bu::FString &getProperty( const Bu::FString &sName ) const; |
31 | const NodeList &getNode( const Bu::FString &sName ); | 31 | const TafNode *getNode( const Bu::FString &sName ) const; |
32 | const PropList &getProperties( const Bu::FString &sName ) const; | ||
33 | const NodeList &getNodes( const Bu::FString &sName ) const; | ||
32 | void addChild( TafNode *pNode ); | 34 | void addChild( TafNode *pNode ); |
33 | 35 | ||
34 | private: | 36 | private: |