diff options
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 ), |