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_LOCATION_JOBS_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_LOCATION_JOBS_H_
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #ifdef ALLOCATE_LOCATION_JOB_CONSTANTS
38 #define LOCATION_JOB_PREFIX DFW_FIELD_TRIAL_SERVICE_API
39 #define LOCATION_JOB_STRUCT_VAL(x,y) = { x, y}
41 #define LOCATION_JOB_PREFIX extern
42 #define LOCATION_JOB_STRUCT_VAL(x,y)
bool AddSearchLocationParams(ServiceData *data_p, ParameterSet *param_set_p)
bool SetUpLocationsListParameter(const FieldTrialServiceData *data_p, StringParameter *param_p, const Location *active_location_p, const char *extra_option_s)
bool RunForSubmissionLocationParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
json_t * GetLocationIndexingData(Service *service_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
bool GetSubmissionLocationParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
bool GetSearchLocationParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
A datatype to represent a running task.
Definition: service_job.h:72
A c-style string.
Definition: parameter_type.h:58
A datatype representing a URI.
Definition: data_resource.h:40
LOCATION_JOB_PREFIX NamedParameterType LOCATION_NAME LOCATION_JOB_STRUCT_VAL("LO Name", PT_STRING)
json_t * GetAllLocationsAsJSON(const FieldTrialServiceData *data_p, bson_t *opts_p)
Location * GetLocationFromResource(DataResource *resource_p, const NamedParameterType location_param_type, FieldTrialServiceData *dfw_data_p)
bool AddLocationToServiceJob(ServiceJob *job_p, Location *location_p, const ViewFormat format, FieldTrialServiceData *data_p)
Address * GetAddressFromLocationString(const char *location_s)
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
A datatype which defines an available service, its capabilities and its parameters.
Definition: service.h:153
An unsigned real number.
Definition: parameter_type.h:55
Definition: string_parameter.h:32
A datatype for storing a postal address as well as its geographic coordinates if possible.
Definition: address.h:21
A boolean parameter.
Definition: parameter_type.h:38
A real number.
Definition: parameter_type.h:52
bool AddSubmissionLocationParams(ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
bool RunForSearchLocationParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
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
const char * GetUnsetLocationValue(void)
Definition: location.h:45