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_CHAR_PARAMETER_H_
24 #define CORE_SHARED_PARAMETERS_INCLUDE_CHAR_PARAMETER_H_
114 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
115 const char *default_value_p, uint8 level);
119 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
120 const char *default_value_p,
const char *current_value_p, uint8 level);
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
CharParameter * AllocateCharParameter(const struct ServiceData *service_data_p, 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)
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
bool SetCharParameterCurrentValueFromJSON(CharParameter *param_p, const json_t *value_p)
bool SetCharParameterCurrentValue(CharParameter *param_p, const char *value_p)
CharParameter * AllocateCharParameterFromJSON(const json_t *param_json_p, const struct Service *service_p, const bool concise_flag)
Parameter * EasyCreateAndAddCharParameterToParameterSet(const struct ServiceData *service_data_p, ParameterSet *params_p, ParameterGroup *group_p, const char *const name_s, const char *const display_name_s, const char *const description_s, const char *default_value_p, uint8 level)
#define GRASSROOTS_SERVICE_API
Definition: grassroots_service_library.h:49
const char * GetCharParameterDefaultValue(const CharParameter *param_p)
bool SetCharParameterBounds(CharParameter *param_p, const char min_value, const char max_value)
char * cp_min_value_p
Definition: char_parameter.h:44
const char * GetCharParameterCurrentValue(const CharParameter *param_p)
Definition: char_parameter.h:36
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
bool IsCharParameterBounded(const CharParameter *param_p)
Parameter * CreateAndAddCharParameterToParameterSet(const struct ServiceData *service_data_p, ParameterSet *params_p, ParameterGroup *group_p, 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, uint8 level)
bool SetCharParameterDefaultValue(CharParameter *param_p, const char *value_p)
bool IsCharParameter(Parameter *param_p)
ParameterLevel
The ParameterLevel defines the level that a user should be to adjust the Parameter.
Definition: parameter.h:52
bool GetCharParameterBounds(const CharParameter *param_p, char *min_p, char *max_p)
Parameter cp_base_param
Definition: char_parameter.h:38
void FreeCharParameter(CharParameter *param_p)
char * cp_current_value_p
Definition: char_parameter.h:40
A datatype for holding the configuration data for a Service.
Definition: service.h:126
char * cp_default_value_p
Definition: char_parameter.h:42
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
bool GetCurrentCharParameterValueFromParameterSet(const ParameterSet *const params_p, const char *const name_s, const char **value_pp)
char * cp_max_value_p
Definition: char_parameter.h:46