summaryrefslogtreecommitdiff
path: root/src/include/cctk_ParameterFunctions.h
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-18 10:02:12 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-18 10:02:12 +0000
commit4d4f441b39716065ba4d993acb2ff2c0f4da27ab (patch)
treefec860f0270b08156deaa9a23c0534acd210125b /src/include/cctk_ParameterFunctions.h
parent182294aefb58d7cbca819e8b77c0893709b9dc36 (diff)
Some bugfixes and renaming of parameter stuff.
Some more stuff for ActiveThorns. Now the -O and -o commandline options do something sensible. You can also pass an optional parameter 'v' to -O which makes it very verbose. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1054 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_ParameterFunctions.h')
-rw-r--r--src/include/cctk_ParameterFunctions.h49
1 files changed, 27 insertions, 22 deletions
diff --git a/src/include/cctk_ParameterFunctions.h b/src/include/cctk_ParameterFunctions.h
index 0babf36d..ce71d4ae 100644
--- a/src/include/cctk_ParameterFunctions.h
+++ b/src/include/cctk_ParameterFunctions.h
@@ -27,9 +27,9 @@
#define SCOPE_NOT_GLOBAL 4 /* parameter is not visible everywhere */
#define SCOPE_ANY 5 /* parameter scope is undefined/arbitrary */
+static char *cctk_parameter_scopes[] = {"GLOBAL", "RESTRICTED", "PRIVATE"};
-
-/* parameter types ***Tom: correct? *** */
+/* parameter types */
#define PARAMETER_KEYWORD 1 /* parameter is keyword */
#define PARAMETER_STRING 2 /* parameter is string */
@@ -39,7 +39,12 @@
#define PARAMETER_REAL 5 /* parameter is float */
#define PARAMETER_BOOLEAN 6 /* parameter is bool */
-
+static const char *cctk_parameter_type_names[] = {"KEYWORD",
+ "STRING",
+ "SENTENCE",
+ "INTEGER",
+ "REAL",
+ "BOOLEAN"};
/* what is a parameter range:
* list of independent ranges, each with
@@ -49,12 +54,12 @@
*/
typedef struct RANGE
{
- struct RANGE* last;
- struct RANGE* next;
- char* range;
- char* origin;
- int active;
- char* description;
+ struct RANGE *last;
+ struct RANGE *next;
+ char *range;
+ char *origin;
+ int active;
+ char *description;
} t_range;
@@ -72,18 +77,18 @@ typedef struct RANGE
*/
typedef struct PARAM_PROPS
{
- char* name;
- char* thorn;
- int scope;
-
- char* description;
- char* defval;
+ char *name;
+ char *thorn;
+ int scope;
+
+ char *description;
+ char *defval;
- int type;
- t_range* range;
+ int type;
+ t_range *range;
- int n_set;
- int steerable;
+ int n_set;
+ int steerable;
} t_param_prop;
@@ -91,11 +96,11 @@ typedef struct PARAM_PROPS
extern "C" {
#endif
/* get list of parameter names for given thorn */
-int CCTK_ParList (const char* thorn, char ***paramlist, int *n_param);
+int CCTK_ParameterList (const char* thorn, char ***paramlist, int *n_param);
/* get parameter properties for gven parameter/thorn pair */
-t_param_prop* CCTK_ParInfo (const char* name,
- const char* thorn);
+t_param_prop *CCTK_ParameterInfo (const char *name,
+ const char *thorn);
#ifdef __cplusplus
}