From 668737effd601778fba74edec14d22dd5b87457a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 19 Apr 2010 15:16:53 +0000 Subject: 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. --- src/tafgroup.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/tafgroup.cpp') 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 @@ #include "bu/tafproperty.h" #include "bu/tafcomment.h" +Bu::TafGroup::TafGroup( const TafGroup &rSrc ) : + TafNode( typeGroup ), + sName( rSrc.sName ) +{ + for( NodeList::const_iterator i = rSrc.lChildren.begin(); i; i++ ) + { + switch( (*i)->getType() ) + { + case typeGroup: + addChild( new TafGroup( *dynamic_cast(*i) ) ); + break; + + case typeProperty: + addChild( new TafProperty( *dynamic_cast(*i) ) ); + break; + + case typeComment: + addChild( new TafComment( *dynamic_cast(*i) ) ); + break; + } + } +} + Bu::TafGroup::TafGroup( const Bu::FString &sName ) : TafNode( typeGroup ), sName( sName ) -- cgit v1.2.3