diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2007-06-06 21:18:15 +0000 | 
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-06 21:18:15 +0000 | 
| commit | 3c846af2fa8e4693c190c5131ec87d967eb58b3e (patch) | |
| tree | 46ce9a7ae6f83d1dccd79a751a5340cca2eb05bc /src/tafnode.cpp | |
| parent | 3144bd7deb950de0cb80e2215c1545bdf8fc81e9 (diff) | |
| download | libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.gz libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.bz2 libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.xz libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.zip | |
The TafReader is more general and much nicer, and about to actually construct
nodes, that part will be exciting.  I also fixed some stuff and added some new
functions to List, it now has first() and last() which work just like std::list
front() and back(), I may add compatibility functions later...
Diffstat (limited to 'src/tafnode.cpp')
| -rw-r--r-- | src/tafnode.cpp | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/src/tafnode.cpp b/src/tafnode.cpp index c9756ec..01880d9 100644 --- a/src/tafnode.cpp +++ b/src/tafnode.cpp | |||
| @@ -7,3 +7,19 @@ Bu::TafNode::TafNode() | |||
| 7 | Bu::TafNode::~TafNode() | 7 | Bu::TafNode::~TafNode() | 
| 8 | { | 8 | { | 
| 9 | } | 9 | } | 
| 10 | |||
| 11 | void Bu::TafNode::setProperty( Bu::FString sName, Bu::FString sValue ) | ||
| 12 | { | ||
| 13 | if( hProp.has( sName ) ) | ||
| 14 | { | ||
| 15 | hProp.insert( sName, PropList() ); | ||
| 16 | } | ||
| 17 | |||
| 18 | hProp.get( sName ).append( sValue ); | ||
| 19 | } | ||
| 20 | |||
| 21 | const Bu::TafNode::PropList &Bu::TafNode::getProperty( const Bu::FString &sName ) | ||
| 22 | { | ||
| 23 | return hProp.get( sName ); | ||
| 24 | } | ||
| 25 | |||
