[cig-commits] commit: Adding a PluginGetBool.
Mercurial
hg at geodynamics.org
Mon Feb 1 15:32:16 PST 2010
changeset: 703:4c7f2f54a402
branch: pcu_rejig
user: LukeHodkinson at localhost.localdomain
date: Thu Dec 03 14:29:01 2009 +1100
files: Base/Automation/src/Stg_ComponentFactory.c Base/Automation/src/Stg_ComponentFactory.h
description:
Adding a PluginGetBool.
diff -r ac3c2f072ad7 -r 4c7f2f54a402 Base/Automation/src/Stg_ComponentFactory.c
--- a/Base/Automation/src/Stg_ComponentFactory.c Wed Dec 02 11:31:17 2009 +1100
+++ b/Base/Automation/src/Stg_ComponentFactory.c Thu Dec 03 14:29:01 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 ac3c2f072ad7 -r 4c7f2f54a402 Base/Automation/src/Stg_ComponentFactory.h
--- a/Base/Automation/src/Stg_ComponentFactory.h Wed Dec 02 11:31:17 2009 +1100
+++ b/Base/Automation/src/Stg_ComponentFactory.h Thu Dec 03 14:29:01 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