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.
8 #ifndef CORE_SHARED_PARAMETERS_INCLUDE_STRING_ARRAY_PARAMETER_H_
9 #define CORE_SHARED_PARAMETERS_INCLUDE_STRING_ARRAY_PARAMETER_H_
67 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
68 char **default_values_ss, uint32 num_entries, uint8 level);
71 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
72 char **default_value_ss,
char **current_value_ss, uint32 num_entries, uint8 level);
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
Parameter * EasyCreateAndAddStringArrayParameterToParameterSet(const 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, char **default_values_ss, uint32 num_entries, uint8 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 IsStringArrayParameter(const Parameter *param_p)
char ** sap_default_values_ss
Definition: string_array_parameter.h:27
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
size_t sap_num_values
Definition: string_array_parameter.h:29
#define GRASSROOTS_SERVICE_API
Definition: grassroots_service_library.h:49
char * GetStringArrayParameterCurrentValuesAsFlattenedString(const StringArrayParameter *param_p)
void FreeStringArrayParameter(StringArrayParameter *param_p)
const char ** GetStringArrayParameterCurrentValues(const StringArrayParameter *param_p)
char ** sap_current_values_ss
Definition: string_array_parameter.h:24
const char ** GetStringArrayValuesForParameter(ParameterSet *param_set_p, const char *param_s, size_t *num_entries_p)
Parameter sap_base_param
Definition: string_array_parameter.h:22
const char * GetStringArrayParameterCurrentValueAtIndex(const StringArrayParameter *param_p, const size_t index)
bool SetStringArrayParameterDefaultValues(StringArrayParameter *param_p, char **values_ss, const size_t num_values)
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
char ** CopyStringArray(char **src_ss, const size_t num_values)
Definition: string_array_parameter.h:20
Parameter * CreateAndAddStringArrayParameterToParameterSet(const 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, char **default_value_ss, char **current_value_ss, uint32 num_entries, uint8 level)
size_t GetNumberOfStringArrayCurrentParameterValues(const StringArrayParameter *param_p)
bool SetStringArrayParameterCurrentValues(StringArrayParameter *param_p, char **values_ss, const size_t num_values)
StringArrayParameter * AllocateStringArrayParameter(const struct ServiceData *service_data_p, const char *const name_s, const char *const display_name_s, const char *const description_s, char **default_value_ss, char **current_value_ss, const size_t num_values, ParameterLevel level)
ParameterLevel
The ParameterLevel defines the level that a user should be to adjust the Parameter.
Definition: parameter.h:52
StringArrayParameter * AllocateStringArrayParameterFromJSON(const json_t *param_json_p, const struct Service *service_p, const bool concise_flag, const ParameterType *pt_p)
A datatype for holding the configuration data for a Service.
Definition: service.h:126
const char ** GetStringArrayParameterDefaultValues(const StringArrayParameter *param_p)
bool GetCurrentStringArrayParameterValuesFromParameterSet(const ParameterSet *const params_p, const char *const name_s, const char ***values_ppp, size_t *num_entries_p)
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46