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.
programme_jobs.h File Reference
Include dependency graph for programme_jobs.h:

Go to the source code of this file.

Functions

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_ID PROGRAMME_JOB_STRUCT_VAL ("PR Id", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_ABBREVIATION PROGRAMME_JOB_STRUCT_VAL ("PR Abbreviation", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_CROP PROGRAMME_JOB_STRUCT_VAL ("PR Crop", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_URL PROGRAMME_JOB_STRUCT_VAL ("PR Url", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_NAME PROGRAMME_JOB_STRUCT_VAL ("PR Name", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_OBJECTIVE PROGRAMME_JOB_STRUCT_VAL ("PR Objective", PT_LARGE_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_LOGO PROGRAMME_JOB_STRUCT_VAL ("PR Logo", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_FUNDER PROGRAMME_JOB_STRUCT_VAL ("PR Funder", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_USER PROGRAMME_JOB_STRUCT_VAL ("PR User", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_CODE PROGRAMME_JOB_STRUCT_VAL ("PR Code", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_NAME PROGRAMME_JOB_STRUCT_VAL ("PR PI Name", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_EMAIL PROGRAMME_JOB_STRUCT_VAL ("PR PI Email", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_ROLE PROGRAMME_JOB_STRUCT_VAL ("PR PI Role", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_AFFILATION PROGRAMME_JOB_STRUCT_VAL ("PR PI Affiliation", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_ORCID PROGRAMME_JOB_STRUCT_VAL ("PR PI Orcid", PT_STRING)
 
PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_SEARCH PROGRAMME_JOB_STRUCT_VAL ("PR Search", PT_STRING)
 
bool SetUpProgrammesListParameter (const FieldTrialServiceData *data_p, StringParameter *param_p, const Programme *active_program_p, const bool empty_option_flag)
 
bool AddSubmissionProgrammeParams (ServiceData *data_p, ParameterSet *param_set_p, Programme *active_programme_p, const bool read_only_flag)
 
bool AddSearchProgrammeParams (ServiceData *data_p, ParameterSet *param_set_p, DataResource *resource_p)
 
json_t * GetAllProgrammesAsJSON (const FieldTrialServiceData *data_p, const bool full_data_flag)
 
bool GetSubmissionProgrammeParameterTypeForNamedParameter (const char *param_name_s, ParameterType *pt_p)
 
bool GetSearchProgrammeParameterTypeForNamedParameter (const char *param_name_s, ParameterType *pt_p)
 
bool RunForSubmissionProgrammeParams (FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p, User *user_p)
 
bool RunForSearchProgrammeParams (FieldTrialServiceData *data_p, ParameterSet *param_set_p, ServiceJob *job_p)
 
bool AddProgrammeToServiceJob (ServiceJob *job_p, Programme *program_p, const ViewFormat format, FieldTrialServiceData *data_p)
 
ProgrammeGetProgrammeFromResource (DataResource *resource_p, const NamedParameterType program_param_type, FieldTrialServiceData *dfw_data_p)
 
json_t * GetProgrammeIndexingData (Service *service_p)
 
json_t * GetProgrammeAsFrictionlessDataResource (const Programme *programme_p, const FieldTrialServiceData *data_p)
 
json_t * GetProgrammeAsFrictionlessDataPackage (const Programme *programme_p, const FieldTrialServiceData *data_p)
 
bool SaveProgrammeAsFrictionlessData (const Programme *programme_p, const FieldTrialServiceData *data_p)
 
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 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)
 
bool AddProgrammeEditor (Programme *programme_p, const char *id_s, ParameterSet *param_set_p, const bool read_only_flag, FieldTrialServiceData *dfw_data_p)
 

Function Documentation

◆ PROGRAMME_JOB_STRUCT_VAL() [1/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_ID PROGRAMME_JOB_STRUCT_VAL ( "PR Id"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [2/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_ABBREVIATION PROGRAMME_JOB_STRUCT_VAL ( "PR Abbreviation"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [3/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_CROP PROGRAMME_JOB_STRUCT_VAL ( "PR Crop ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [4/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_URL PROGRAMME_JOB_STRUCT_VAL ( "PR Url"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [5/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_NAME PROGRAMME_JOB_STRUCT_VAL ( "PR Name"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [6/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_OBJECTIVE PROGRAMME_JOB_STRUCT_VAL ( "PR Objective"  ,
PT_LARGE_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [7/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_LOGO PROGRAMME_JOB_STRUCT_VAL ( "PR Logo"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [8/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_FUNDER PROGRAMME_JOB_STRUCT_VAL ( "PR Funder"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [9/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_USER PROGRAMME_JOB_STRUCT_VAL ( "PR User ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [10/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_CODE PROGRAMME_JOB_STRUCT_VAL ( "PR Code"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [11/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_NAME PROGRAMME_JOB_STRUCT_VAL ( "PR PI Name"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [12/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_EMAIL PROGRAMME_JOB_STRUCT_VAL ( "PR PI Email"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [13/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_ROLE PROGRAMME_JOB_STRUCT_VAL ( "PR PI Role"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [14/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_AFFILATION PROGRAMME_JOB_STRUCT_VAL ( "PR PI Affiliation"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [15/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_PI_ORCID PROGRAMME_JOB_STRUCT_VAL ( "PR PI Orcid"  ,
PT_STRING   
)

◆ PROGRAMME_JOB_STRUCT_VAL() [16/16]

PROGRAMME_JOB_PREFIX NamedParameterType PROGRAMME_SEARCH PROGRAMME_JOB_STRUCT_VAL ( "PR Search"  ,
PT_STRING   
)

◆ SetUpProgrammesListParameter()

bool SetUpProgrammesListParameter ( const FieldTrialServiceData data_p,
StringParameter param_p,
const Programme active_program_p,
const bool  empty_option_flag 
)

◆ AddSubmissionProgrammeParams()

bool AddSubmissionProgrammeParams ( ServiceData data_p,
ParameterSet param_set_p,
Programme active_programme_p,
const bool  read_only_flag 
)

◆ AddSearchProgrammeParams()

bool AddSearchProgrammeParams ( ServiceData data_p,
ParameterSet param_set_p,
DataResource resource_p 
)

◆ GetAllProgrammesAsJSON()

json_t* GetAllProgrammesAsJSON ( const FieldTrialServiceData data_p,
const bool  full_data_flag 
)

◆ GetSubmissionProgrammeParameterTypeForNamedParameter()

bool GetSubmissionProgrammeParameterTypeForNamedParameter ( const char *  param_name_s,
ParameterType pt_p 
)

◆ GetSearchProgrammeParameterTypeForNamedParameter()

bool GetSearchProgrammeParameterTypeForNamedParameter ( const char *  param_name_s,
ParameterType pt_p 
)

◆ RunForSubmissionProgrammeParams()

bool RunForSubmissionProgrammeParams ( FieldTrialServiceData data_p,
ParameterSet param_set_p,
ServiceJob job_p,
User user_p 
)

◆ RunForSearchProgrammeParams()

bool RunForSearchProgrammeParams ( FieldTrialServiceData data_p,
ParameterSet param_set_p,
ServiceJob job_p 
)

◆ AddProgrammeToServiceJob()

bool AddProgrammeToServiceJob ( ServiceJob job_p,
Programme program_p,
const ViewFormat  format,
FieldTrialServiceData data_p 
)

◆ GetProgrammeFromResource()

Programme* GetProgrammeFromResource ( DataResource resource_p,
const NamedParameterType  program_param_type,
FieldTrialServiceData dfw_data_p 
)

◆ GetProgrammeIndexingData()

json_t* GetProgrammeIndexingData ( Service service_p)

◆ GetProgrammeAsFrictionlessDataResource()

json_t* GetProgrammeAsFrictionlessDataResource ( const Programme programme_p,
const FieldTrialServiceData data_p 
)

◆ GetProgrammeAsFrictionlessDataPackage()

json_t* GetProgrammeAsFrictionlessDataPackage ( const Programme programme_p,
const FieldTrialServiceData data_p 
)

◆ SaveProgrammeAsFrictionlessData()

bool SaveProgrammeAsFrictionlessData ( const Programme programme_p,
const FieldTrialServiceData data_p 
)

◆ AddProgrammesListFromJSON()

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 
)

◆ AddProgrammesList()

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 
)

◆ AddProgrammeEditor()

bool AddProgrammeEditor ( Programme programme_p,
const char *  id_s,
ParameterSet param_set_p,
const bool  read_only_flag,
FieldTrialServiceData dfw_data_p 
)