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_SIGNED_INT_PARAMETER_H_
24 #define CORE_SHARED_PARAMETERS_INCLUDE_SIGNED_INT_PARAMETER_H_
94 const char *
const name_s,
const char *
const display_name_s,
95 const char *
const description_s,
96 const int32 *default_value_p,
const int32 *current_value_p,
108 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
109 const int32 *default_value_p, uint8 level);
113 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
114 const int32 *default_value_p,
const int32 *current_value_p, uint8 level);
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
const int32 * GetSignedIntParameterCurrentValue(const SignedIntParameter *param_p)
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
bool SetSignedIntParameterCurrentValue(SignedIntParameter *param_p, const int32 *value_p)
SignedIntParameter * AllocateSignedIntParameter(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 int32 *default_value_p, const int32 *current_value_p, ParameterLevel level)
Allocate a SignedIntParameter.
int32 sipo_value
The internal value for this option.
Definition: signed_int_parameter.h:51
#define GRASSROOTS_SERVICE_API
Definition: grassroots_service_library.h:49
void FreeSignedIntParameterOption(SignedIntParameterOption *option_p)
const int32 * GetSignedIntParameterDefaultValue(const SignedIntParameter *param_p)
bool GetCurrentSignedIntParameterValueFromParameterSet(const ParameterSet *const params_p, const char *const name_s, const int32 **value_pp)
void GetSignedIntParameterBounds(const SignedIntParameter *param_p, const int32 **min_pp, const int32 **max_pp)
Parameter * CreateAndAddSignedIntParameterToParameterSet(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 int32 *default_value_p, const int32 *current_value_p, uint8 level)
int32 * sip_min_value_p
Definition: signed_int_parameter.h:41
int32 * sip_current_value_p
Definition: signed_int_parameter.h:37
void FreeSignedIntParameter(SignedIntParameter *param_p)
SignedIntParameterOption * AllocateSignedIntParameterOption(const int32 value, const char *description_s)
int32 * sip_default_value_p
Definition: signed_int_parameter.h:39
void FreeStringParameterOptionNode(ListItem *item_p)
Definition: signed_int_parameter.h:48
bool IsSignedIntParameterBounded(const SignedIntParameter *param_p)
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
Parameter sip_base_param
Definition: signed_int_parameter.h:35
ParameterLevel
The ParameterLevel defines the level that a user should be to adjust the Parameter.
Definition: parameter.h:52
bool IsSignedIntParameter(const Parameter *param_p)
int32 * sip_max_value_p
Definition: signed_int_parameter.h:43
SignedIntParameter * AllocateSignedIntParameterFromJSON(const json_t *param_json_p, const struct Service *service_p, const bool concise_flag)
SignedIntParameterOption * sipon_option_p
Definition: signed_int_parameter.h:64
char * sipo_description_s
The user-friendly description for this value.
Definition: signed_int_parameter.h:54
SignedIntParameterOptionNode * AllocateSignedIntParameterOptionNode(SignedIntParameterOption *option_p)
Parameter * EasyCreateAndAddSignedIntParameterToParameterSet(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 int32 *default_value_p, uint8 level)
ListItem sipon_node
Definition: signed_int_parameter.h:62
bool SetSignedIntParameterDefaultValue(SignedIntParameter *param_p, const int32 *value_p)
A datatype for holding the configuration data for a Service.
Definition: service.h:126
bool CreateAndAddSignedIntParameterOption(SignedIntParameter *param_p, const int32 value, const char *description_s)
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
bool SetSignedIntParameterCurrentValueFromJSON(SignedIntParameter *param_p, const json_t *value_p)
bool SetSignedIntParameterBounds(SignedIntParameter *param_p, const int32 min_value, const int32 max_value)
Definition: signed_int_parameter.h:60
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43
Definition: signed_int_parameter.h:33