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 SERVICES_FIELD_TRIALS_INCLUDE_PROGRAMME_JOBS_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_PROGRAMME_JOBS_H_
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 #ifdef ALLOCATE_PROGRAMME_JOB_CONSTANTS
36 #define PROGRAMME_JOB_PREFIX DFW_FIELD_TRIAL_SERVICE_API
37 #define PROGRAMME_JOB_STRUCT_VAL(x,y) = { x, y}
39 #define PROGRAMME_JOB_PREFIX extern
40 #define PROGRAMME_JOB_STRUCT_VAL(x,y)
bool RunForSearchProgrammeParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
A datatype to tell the system that certain parameters should be grouped together in the client's user...
Definition: parameter_group.h:85
bool AddProgrammesListFromJSON(const char *id_s, json_t *programmes_json_p, ParameterSet *param_set_p, ParameterGroup *group_p, const bool read_only_flag, const char *empty_option_s, FieldTrialServiceData *ft_data_p)
bool SaveProgrammeAsFrictionlessData(const Programme *programme_p, const FieldTrialServiceData *data_p)
bool AddProgrammesList(const char *id_s, ParameterSet *param_set_p, ParameterGroup *group_p, const bool read_only_flag, const char *const empty_option_s, FieldTrialServiceData *data_p)
This is a datatype that stores a read-only c-style string along with a ParameterType.
Definition: parameter.h:85
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
A datatype to represent a running task.
Definition: service_job.h:72
bool GetSearchProgrammeParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
A c-style string.
Definition: parameter_type.h:58
A datatype representing a URI.
Definition: data_resource.h:40
bool AddSubmissionProgrammeParams(ServiceData *data_p, ParameterSet *param_set_p, Programme *active_programme_p, const bool read_only_flag)
bool AddProgrammeEditor(Programme *programme_p, const char *id_s, ParameterSet *param_set_p, const bool read_only_flag, FieldTrialServiceData *dfw_data_p)
A potentially large c-style string.
Definition: parameter_type.h:90
bool AddProgrammeToServiceJob(ServiceJob *job_p, Programme *program_p, const ViewFormat format, FieldTrialServiceData *data_p)
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
Programme * GetProgrammeFromResource(DataResource *resource_p, const NamedParameterType program_param_type, FieldTrialServiceData *dfw_data_p)
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
json_t * GetProgrammeAsFrictionlessDataResource(const Programme *programme_p, const FieldTrialServiceData *data_p)
Definition: string_parameter.h:32
bool RunForSubmissionProgrammeParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p, User *user_p)
Definition: programme.h:46
bool AddSearchProgrammeParams(ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
json_t * GetProgrammeIndexingData(Service *service_p)
A datatype to store user credentials.
Definition: user_details.h:40
json_t * GetAllProgrammesAsJSON(const FieldTrialServiceData *data_p, const bool full_data_flag)
json_t * GetProgrammeAsFrictionlessDataPackage(const Programme *programme_p, const FieldTrialServiceData *data_p)
bool GetSubmissionProgrammeParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_ID PROGRAMME_JOB_STRUCT_VAL("PR Id", PT_STRING)
A datatype for holding the configuration data for a Service.
Definition: service.h:126
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
bool SetUpProgrammesListParameter(const FieldTrialServiceData *data_p, StringParameter *param_p, const Programme *active_program_p, const bool empty_option_flag)