diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2008-06-02 14:40:27 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2008-06-02 14:40:27 +0000 |
| commit | b84120127c21e6be693f554d7f170b73faacc09d (patch) | |
| tree | 7a1715ff75dfe0e7322cd4c2d1a3f1da47da5681 /src/tafnode.cpp | |
| parent | 711caf2fc55c16272fbcd2bfb9ffe315ecaf5a1a (diff) | |
| download | libbu++-b84120127c21e6be693f554d7f170b73faacc09d.tar.gz libbu++-b84120127c21e6be693f554d7f170b73faacc09d.tar.bz2 libbu++-b84120127c21e6be693f554d7f170b73faacc09d.tar.xz libbu++-b84120127c21e6be693f554d7f170b73faacc09d.zip | |
Added another helper to Bu::TafGroup, very handy...something happened to the
logger...I guess.
Diffstat (limited to 'src/tafnode.cpp')
| -rw-r--r-- | src/tafnode.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tafnode.cpp b/src/tafnode.cpp index 6883b97..bdd96d7 100644 --- a/src/tafnode.cpp +++ b/src/tafnode.cpp | |||
| @@ -127,6 +127,19 @@ const Bu::FString &Bu::TafGroup::getProperty( const Bu::FString &sName ) const | |||
| 127 | return hProp.get( sName ).first(); | 127 | return hProp.get( sName ).first(); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | const Bu::FString &Bu::TafGroup::getProperty( const Bu::FString &sName, | ||
| 131 | const Bu::FString &sDef ) const | ||
| 132 | { | ||
| 133 | try | ||
| 134 | { | ||
| 135 | return getProperty( sName ); | ||
| 136 | } | ||
| 137 | catch( Bu::HashException &e ) | ||
| 138 | { | ||
| 139 | return sDef; | ||
| 140 | } | ||
| 141 | } | ||
| 142 | |||
| 130 | Bu::TafProperty::TafProperty( const Bu::FString &sName, const Bu::FString &sValue ) : | 143 | Bu::TafProperty::TafProperty( const Bu::FString &sName, const Bu::FString &sValue ) : |
| 131 | TafNode( typeProperty ), | 144 | TafNode( typeProperty ), |
| 132 | sName( sName ), | 145 | sName( sName ), |
