aboutsummaryrefslogtreecommitdiff
path: root/src/tafnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/tafnode.cpp13
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
130const 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
130Bu::TafProperty::TafProperty( const Bu::FString &sName, const Bu::FString &sValue ) : 143Bu::TafProperty::TafProperty( const Bu::FString &sName, const Bu::FString &sValue ) :
131 TafNode( typeProperty ), 144 TafNode( typeProperty ),
132 sName( sName ), 145 sName( sName ),