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.
crop_jobs.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2018 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 /*
17  * crop_jobs.h
18  *
19  * Created on: 17 Apr 2019
20  * Author: billy
21  */
22 
23 #ifndef SERVICES_FIELD_TRIALS_INCLUDE_CROP_JOBS_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_CROP_JOBS_H_
25 
26 
29 
30 #include "crop.h"
31 #include "string_parameter.h"
32 
33 
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
40 
41 
43 
44 
46 
47 
49 
50 
51 DFW_FIELD_TRIAL_SERVICE_LOCAL bool SetUpCropsListParameter (const FieldTrialServiceData *data_p, Parameter *param_p, const Crop *active_crop_p, const char *empty_option_s, const bool new_study_flag);
52 
53 DFW_FIELD_TRIAL_SERVICE_LOCAL Crop *GetStoredCropValue (const json_t *json_p, const char *key_s, const FieldTrialServiceData *data_p);
54 
55 
56 #ifdef __cplusplus
57 }
58 #endif
59 
60 
61 #endif /* SERVICES_FIELD_TRIALS_INCLUDE_CROP_JOBS_H_ */
Parameter
The datatype that stores all of the information about a Parameter.
Definition: parameter.h:121
Crop
Definition: crop.h:34
ParameterType
ParameterType
The different types that a Parameter can take.
Definition: parameter_type.h:35
ServiceJob
A datatype to represent a running task.
Definition: service_job.h:72
dfw_field_trial_service_library.h
SetUpCropsListParameter
bool SetUpCropsListParameter(const FieldTrialServiceData *data_p, Parameter *param_p, const Crop *active_crop_p, const char *empty_option_s, const bool new_study_flag)
AddSubmissionCropParams
bool AddSubmissionCropParams(ServiceData *data_p, ParameterSet *param_set_p)
DFW_FIELD_TRIAL_SERVICE_LOCAL
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
GetStoredCropValue
Crop * GetStoredCropValue(const json_t *json_p, const char *key_s, const FieldTrialServiceData *data_p)
RunForSubmissionCropParams
bool RunForSubmissionCropParams(FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
dfw_field_trial_service_data.h
GetSubmissionCropParameterTypeForNamedParameter
bool GetSubmissionCropParameterTypeForNamedParameter(const char *param_name_s, ParameterType *pt_p)
ServiceData
A datatype for holding the configuration data for a Service.
Definition: service.h:126
crop.h
FieldTrialServiceData
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
ParameterSet
A set of Parameters along with an optional name and description.
Definition: parameter_set.h:46
string_parameter.h