[cig-commits] commit: merge
Mercurial
hg at geodynamics.org
Mon Feb 1 15:32:19 PST 2010
changeset: 706:b277366327c9
branch: pcu_rejig
parent: 705:9a070c9a4b8f
parent: 703:4c7f2f54a402
user: JulianGiordani
date: Fri Dec 04 16:24:49 2009 +1100
description:
merge
diff -r 9a070c9a4b8f -r b277366327c9 Base/Automation/src/Stg_ComponentFactory.c
--- a/Base/Automation/src/Stg_ComponentFactory.c Wed Dec 02 14:17:25 2009 +1100
+++ b/Base/Automation/src/Stg_ComponentFactory.c Fri Dec 04 16:24:49 2009 +1100
@@ -905,6 +905,12 @@ int Stg_ComponentFactory_PluginGetInt( v
Dictionary_Entry_Value_FromInt( defaultVal )));
}
+Bool Stg_ComponentFactory_PluginGetBool( void* cf, void *codelet, Dictionary_Entry_Key key, Bool defaultVal ) {
+ return Dictionary_Entry_Value_AsBool(
+ _Stg_ComponentFactory_PluginGetDictionaryValue( cf, codelet, key,
+ Dictionary_Entry_Value_FromBool( defaultVal ) ) );
+}
+
Stg_Component* _Stg_ComponentFactory_ConstructByNameWithKeyFallback(
void* cf,
Name parentComponentName,
diff -r 9a070c9a4b8f -r b277366327c9 Base/Automation/src/Stg_ComponentFactory.h
--- a/Base/Automation/src/Stg_ComponentFactory.h Wed Dec 02 14:17:25 2009 +1100
+++ b/Base/Automation/src/Stg_ComponentFactory.h Fri Dec 04 16:24:49 2009 +1100
@@ -290,6 +290,8 @@
int Stg_ComponentFactory_PluginGetInt( void* cf, void *codelet, Dictionary_Entry_Key key, int defaultVal );
+ Bool Stg_ComponentFactory_PluginGetBool( void* cf, void *codelet, Dictionary_Entry_Key key, Bool defaultVal );
+
#define Stg_ComponentFactory_ConstructByNameWithKeyFallback( \
cf, parentComponentName, componentTrialName, componentFallbackKey, type, isEssential, data ) \
(type*) ( (Stg_ComponentFactory*) cf )->constructByNameWithKeyFallback( \
More information about the CIG-COMMITS
mailing list