summaryrefslogtreecommitdiff
path: root/src/tafgroup.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-04-19 15:16:53 +0000
committerMike Buland <eichlan@xagasoft.com>2010-04-19 15:16:53 +0000
commit668737effd601778fba74edec14d22dd5b87457a (patch)
tree9ca6b88518cea29244dc92a219c20060cff8d593 /src/tafgroup.cpp
parentfc2943ed980306244749d8d13796eaff690917b6 (diff)
downloadlibbu++-668737effd601778fba74edec14d22dd5b87457a.tar.gz
libbu++-668737effd601778fba74edec14d22dd5b87457a.tar.bz2
libbu++-668737effd601778fba74edec14d22dd5b87457a.tar.xz
libbu++-668737effd601778fba74edec14d22dd5b87457a.zip
CacheStoreMyriad is written, it's pretty much a copy of CacheStoreNids since
Nids and Myriad pretty much share an API. However, there seems to be a bug in Myriad when a Myriad file is created and filled with data immediately, the header stream is mis-linking one of the blocks again.
Diffstat (limited to 'src/tafgroup.cpp')
-rw-r--r--src/tafgroup.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tafgroup.cpp b/src/tafgroup.cpp
index 7c1c818..c3f5b1e 100644
--- a/src/tafgroup.cpp
+++ b/src/tafgroup.cpp
@@ -9,6 +9,29 @@
9#include "bu/tafproperty.h" 9#include "bu/tafproperty.h"
10#include "bu/tafcomment.h" 10#include "bu/tafcomment.h"
11 11
12Bu::TafGroup::TafGroup( const TafGroup &rSrc ) :
13 TafNode( typeGroup ),
14 sName( rSrc.sName )
15{
16 for( NodeList::const_iterator i = rSrc.lChildren.begin(); i; i++ )
17 {
18 switch( (*i)->getType() )
19 {
20 case typeGroup:
21 addChild( new TafGroup( *dynamic_cast<const TafGroup *>(*i) ) );
22 break;
23
24 case typeProperty:
25 addChild( new TafProperty( *dynamic_cast<const TafProperty *>(*i) ) );
26 break;
27
28 case typeComment:
29 addChild( new TafComment( *dynamic_cast<const TafComment *>(*i) ) );
30 break;
31 }
32 }
33}
34
12Bu::TafGroup::TafGroup( const Bu::FString &sName ) : 35Bu::TafGroup::TafGroup( const Bu::FString &sName ) :
13 TafNode( typeGroup ), 36 TafNode( typeGroup ),
14 sName( sName ) 37 sName( sName )