From f5aca1a1b402bd7ebc944dc6e6fe65828d863365 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 20 Jan 2011 02:14:08 +0000 Subject: Bu::FString is now String, and there's a shell script to fix any other programs that were using fstring, I hope. --- src/tafgroup.h | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/tafgroup.h') diff --git a/src/tafgroup.h b/src/tafgroup.h index ed70e8c..096a32f 100644 --- a/src/tafgroup.h +++ b/src/tafgroup.h @@ -10,13 +10,13 @@ #include #include "bu/tafnode.h" -#include "bu/fstring.h" +#include "bu/string.h" #include "bu/hash.h" #include "bu/list.h" namespace Bu { - typedef Bu::List StrList; + typedef Bu::List StrList; class TafProperty; class TafComment; /** @@ -26,42 +26,42 @@ namespace Bu class TafGroup : public TafNode { public: - typedef Bu::List PropList; - typedef Bu::Hash PropHash; + typedef Bu::List PropList; + typedef Bu::Hash PropHash; typedef Bu::List GroupList; - typedef Bu::Hash GroupHash; + typedef Bu::Hash GroupHash; typedef Bu::List NodeList; TafGroup( const TafGroup &rSrc ); - TafGroup( const Bu::FString &sName ); + TafGroup( const Bu::String &sName ); virtual ~TafGroup(); - const Bu::FString &getName() const; - void setName( const Bu::FString &sName ); + const Bu::String &getName() const; + void setName( const Bu::String &sName ); - bool hasProperty( const Bu::FString &sName ) const; - const Bu::FString &getProperty( const Bu::FString &sName ) const; - const Bu::FString &getProperty( const Bu::FString &sName, - const Bu::FString &sDef ) const; - const PropList &getProperties( const Bu::FString &sName ) const; - bool hasChild( const Bu::FString &sName ) const; - const TafGroup *getChild( const Bu::FString &sName ) const; - const GroupList &getChildren( const Bu::FString &sName ) const; + bool hasProperty( const Bu::String &sName ) const; + const Bu::String &getProperty( const Bu::String &sName ) const; + const Bu::String &getProperty( const Bu::String &sName, + const Bu::String &sDef ) const; + const PropList &getProperties( const Bu::String &sName ) const; + bool hasChild( const Bu::String &sName ) const; + const TafGroup *getChild( const Bu::String &sName ) const; + const GroupList &getChildren( const Bu::String &sName ) const; TafNode *addChild( TafNode *pNode ); TafGroup *addChild( TafGroup *pNode ); TafProperty *addChild( TafProperty *pNode ); TafComment *addChild( TafComment *pNode ); - TafGroup *addGroup( const Bu::FString &sName ); + TafGroup *addGroup( const Bu::String &sName ); TafProperty *addProperty( - const Bu::FString &sName, const Bu::FString &sValue ); + const Bu::String &sName, const Bu::String &sValue ); const NodeList &getChildren() const; - const TafGroup *getChildByPath( const Bu::FString &sPath ) const; + const TafGroup *getChildByPath( const Bu::String &sPath ) const; const TafGroup *getChildByPath( StrList lPath ) const; - const Bu::FString &getByPath( const Bu::FString &sPath ) const; - const Bu::FString &getByPath( StrList lPath ) const; + const Bu::String &getByPath( const Bu::String &sPath ) const; + const Bu::String &getByPath( StrList lPath ) const; private: - Bu::FString sName; + Bu::String sName; PropHash hProp; GroupHash hChildren; NodeList lChildren; -- cgit v1.2.3