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_TIME_PARAMETER_H_
24 #define CORE_SHARED_PARAMETERS_INCLUDE_TIME_PARAMETER_H_
73 const char *
const name_s,
const char *
const display_name_s,
74 const char *
const description_s,
75 const struct tm *default_value_p,
const struct tm *current_value_p,
83 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
84 const struct tm *default_value_p, uint8 level);
87 const char *
const name_s,
const char *
const display_name_s,
const char *
const description_s,
88 const struct tm *default_value_p,
const struct tm *current_value_p, uint8 level);
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
bool SetTimeParameterCurrentValue(TimeParameter *param_p, const struct tm *value_p)
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
#define GRASSROOTS_SERVICE_API
Definition: grassroots_service_library.h:49
const struct tm * GetTimeParameterCurrentValue(const TimeParameter *param_p)
bool IsTimeParameter(Parameter *param_p)
struct tm * tp_default_value_p
Definition: time_parameter.h:40
Parameter * EasyCreateAndAddTimeParameterToParameterSet(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 struct tm *default_value_p, uint8 level)
TimeParameter * AllocateTimeParameter(const struct ServiceData *service_data_p, const char *const name_s, const char *const display_name_s, const char *const description_s, const struct tm *default_value_p, const struct tm *current_value_p, ParameterLevel level)
Allocate a TimeParameter.
bool SetTimeParameterDefaultValue(TimeParameter *param_p, const struct tm *value_p)
struct tm * tp_current_value_p
Definition: time_parameter.h:38
const struct tm * GetTimeParameterDefaultValue(const TimeParameter *param_p)
struct tm * tp_max_value_p
Definition: time_parameter.h:44
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
ParameterLevel
The ParameterLevel defines the level that a user should be to adjust the Parameter.
Definition: parameter.h:52
bool SetTimeParameterCurrentValueFromJSON(TimeParameter *param_p, const json_t *value_p)
Parameter tp_base_param
Definition: time_parameter.h:36
TimeParameter * AllocateTimeParameterFromJSON(const json_t *param_json_p, const struct Service *service_p, const bool concise_flag)
bool GetCurrentTimeParameterValueFromParameterSet(const ParameterSet *const params_p, const char *const name_s, const struct tm **value_pp)
struct tm * tp_min_value_p
Definition: time_parameter.h:42
A datatype for holding the configuration data for a Service.
Definition: service.h:126
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
Definition: time_parameter.h:34
Parameter * CreateAndAddTimeParameterToParameterSet(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 struct tm *default_value_p, const struct tm *current_value_p, uint8 level)
void FreeTimeParameter(TimeParameter *param_p)