aboutsummaryrefslogtreecommitdiff
path: root/src/tafnode.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-06 21:18:15 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-06 21:18:15 +0000
commit3c846af2fa8e4693c190c5131ec87d967eb58b3e (patch)
tree46ce9a7ae6f83d1dccd79a751a5340cca2eb05bc /src/tafnode.cpp
parent3144bd7deb950de0cb80e2215c1545bdf8fc81e9 (diff)
downloadlibbu++-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 '')
-rw-r--r--src/tafnode.cpp16
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()
7Bu::TafNode::~TafNode() 7Bu::TafNode::~TafNode()
8{ 8{
9} 9}
10
11void 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
21const Bu::TafNode::PropList &Bu::TafNode::getProperty( const Bu::FString &sName )
22{
23 return hProp.get( sName );
24}
25