Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
23 #ifndef CORE_SHARED_PARAMETERS_INCLUDE_STRING_PARAMETER_H_
24 #define CORE_SHARED_PARAMETERS_INCLUDE_STRING_PARAMETER_H_
99 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
100 const char *default_value_s, uint8 level);
104 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
105 const char *default_value_s,
const char *current_value_s, uint8 level);
bool IsStringParameter(const Parameter *param_p)
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
bool GetCurrentStringParameterValueFromParameterSet(const ParameterSet *const params_p, const char *const name_s, const char **value_pp)
Get the value of a StringParameter within a ParameterSet.
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
char * sp_default_value_s
Definition: string_parameter.h:38
Definition: string_parameter.h:48
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
void FreeStringParameter(StringParameter *param_p)
Parameter * EasyCreateAndAddStringParameterToParameterSet(const struct ServiceData *service_data_p, ParameterSet *params_p, ParameterGroup *group_p, ParameterType type, const char *const name_s, const char *const display_name_s, const char *const description_s, const char *default_value_s, uint8 level)
#define GRASSROOTS_SERVICE_API
Definition: grassroots_service_library.h:49
bool AddStringParameterOptionsToJSON(const Parameter *param_p, json_t *param_json_p)
Parameter sp_base_param
Definition: string_parameter.h:34
StringParameterOption * spon_option_p
Definition: string_parameter.h:63
StringParameter * AllocateStringParameterFromJSON(const json_t *param_json_p, const struct Service *service_p, const bool concise_flag, const ParameterType *pt_p)
bool SetStringParameterBounds(StringParameter *param_p, const char *min_value_s, const char *max_value_s)
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
Definition: string_parameter.h:32
StringParameterOptionNode * AllocateStringParameterOptionNode(StringParameterOption *option_p)
ParameterLevel
The ParameterLevel defines the level that a user should be to adjust the Parameter.
Definition: parameter.h:52
char * spo_value_s
The internal value for this option.
Definition: string_parameter.h:51
StringParameter * AllocateStringParameter(const struct ServiceData *service_data_p, const ParameterType pt, const char *const name_s, const char *const display_name_s, const char *const description_s, const char *default_value_p, const char *current_value_p, ParameterLevel level)
char * sp_max_value_s
Definition: string_parameter.h:42
bool IsStringParameterBounded(const StringParameter *param_p)
char * sp_min_value_s
Definition: string_parameter.h:40
bool GetStringParameterBounds(const StringParameter *param_p, const char **min_pp, const char **max_pp)
bool SetStringParameterCurrentValueFromJSON(StringParameter *param_p, const json_t *value_p)
bool SetStringParameterDefaultValue(StringParameter *param_p, const char *value_p)
StringParameterOption * AllocateStringParameterOption(const char *value_s, const char *description_s)
bool SetStringParameterCurrentValue(StringParameter *param_p, const char *value_p)
A datatype for holding the configuration data for a Service.
Definition: service.h:126
Definition: string_parameter.h:59
const char * GetStringParameterDefaultValue(const StringParameter *param_p)
char * sp_current_value_s
Definition: string_parameter.h:36
bool GetStringParameterOptionsFromJSON(Parameter *param_p, const json_t *const json_p)
void FreeStringParameterOption(StringParameterOption *option_p)
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
const char * GetStringParameterCurrentValue(const StringParameter *param_p)
Parameter * CreateAndAddStringParameterToParameterSet(const struct ServiceData *service_data_p, ParameterSet *params_p, ParameterGroup *group_p, ParameterType type, const char *const name_s, const char *const display_name_s, const char *const description_s, const char *default_value_s, const char *current_value_s, uint8 level)
ListItem spon_node
Definition: string_parameter.h:61
bool CopyStringParameterOptions(const Parameter *src_p, Parameter *dest_p, const bool clear_existing_dest_options_flag)
char * spo_description_s
The user-friendly description for this value.
Definition: string_parameter.h:54
bool GetCurrentStringParameterValueFromParameterGroup(const ParameterGroup *const params_p, const char *const name_s, const char **value_pp)
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43
bool CreateAndAddStringParameterOption(Parameter *param_p, const char *value_s, const char *description_s)