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.
person_jobs.h File Reference
#include "dfw_field_trial_service_data.h"
#include "dfw_field_trial_service_library.h"
#include "jansson.h"
#include "person.h"
#include "parameter_set.h"
#include "parameter_group.h"
#include "linked_list.h"
#include "operation.h"
Include dependency graph for person_jobs.h:

Go to the source code of this file.

Macros

#define PERSON_JOB_PREFIX   extern
 
#define PERSON_JOB_VAL(x)
 
#define PERSON_JOB_STRUCT_VAL(x, y)
 

Functions

PERSON_JOB_PREFIX NamedParameterType PERSON_NAME PERSON_JOB_STRUCT_VAL ("PE Name", PT_STRING)
 
PERSON_JOB_PREFIX NamedParameterType PERSON_EMAIL PERSON_JOB_STRUCT_VAL ("PE Email", PT_STRING)
 
PERSON_JOB_PREFIX NamedParameterType PERSON_ROLE PERSON_JOB_STRUCT_VAL ("PE Role", PT_STRING)
 
PERSON_JOB_PREFIX NamedParameterType PERSON_AFFILIATION PERSON_JOB_STRUCT_VAL ("PE Affiliation", PT_STRING)
 
PERSON_JOB_PREFIX NamedParameterType PERSON_ORCID PERSON_JOB_STRUCT_VAL ("PE Orcid", PT_STRING)
 
bool AddMultiplePeopleParameters (ParameterSet *param_set_p, const char *group_s, LinkedList *existing_people_p, FieldTrialServiceData *data_p)
 
bool GetPersonParameterTypeForNamedParameter (const char *param_name_s, ParameterType *pt_p)
 
OperationStatus ProcessPeople (ServiceJob *job_p, ParameterSet *param_set_p, bool(*process_person_fn)(Person *person_p, void *user_data_p), void *user_data_p, FieldTrialServiceData *ft_service_data_p)
 
bool AddPeopleToJSON (LinkedList *people_p, const char *const key_s, json_t *json_p, const ViewFormat format, const FieldTrialServiceData *data_p)
 
OperationStatus AddPeopleFromJSON (const json_t *people_json_p, bool(*add_person_fn)(Person *person_p, void *user_data_p, MEM_FLAG *mem_p), void *user_data_p, const FieldTrialServiceData *service_data_p)
 
bool AddPeopleAsFrictionlessData (LinkedList *people_p, const char *const key_s, json_t *json_p, const FieldTrialServiceData *data_p)
 

Macro Definition Documentation

◆ PERSON_JOB_PREFIX

#define PERSON_JOB_PREFIX   extern

◆ PERSON_JOB_VAL

#define PERSON_JOB_VAL (   x)

◆ PERSON_JOB_STRUCT_VAL

#define PERSON_JOB_STRUCT_VAL (   x,
 
)

Function Documentation

◆ PERSON_JOB_STRUCT_VAL() [1/5]

PERSON_JOB_PREFIX NamedParameterType PERSON_NAME PERSON_JOB_STRUCT_VAL ( "PE Name"  ,
PT_STRING   
)

◆ PERSON_JOB_STRUCT_VAL() [2/5]

PERSON_JOB_PREFIX NamedParameterType PERSON_EMAIL PERSON_JOB_STRUCT_VAL ( "PE Email"  ,
PT_STRING   
)

◆ PERSON_JOB_STRUCT_VAL() [3/5]

PERSON_JOB_PREFIX NamedParameterType PERSON_ROLE PERSON_JOB_STRUCT_VAL ( "PE Role"  ,
PT_STRING   
)

◆ PERSON_JOB_STRUCT_VAL() [4/5]

PERSON_JOB_PREFIX NamedParameterType PERSON_AFFILIATION PERSON_JOB_STRUCT_VAL ( "PE Affiliation"  ,
PT_STRING   
)

◆ PERSON_JOB_STRUCT_VAL() [5/5]

PERSON_JOB_PREFIX NamedParameterType PERSON_ORCID PERSON_JOB_STRUCT_VAL ( "PE Orcid"  ,
PT_STRING   
)

◆ AddMultiplePeopleParameters()

bool AddMultiplePeopleParameters ( ParameterSet param_set_p,
const char *  group_s,
LinkedList existing_people_p,
FieldTrialServiceData data_p 
)

◆ GetPersonParameterTypeForNamedParameter()

bool GetPersonParameterTypeForNamedParameter ( const char *  param_name_s,
ParameterType pt_p 
)

◆ ProcessPeople()

OperationStatus ProcessPeople ( ServiceJob job_p,
ParameterSet param_set_p,
bool(*)(Person *person_p, void *user_data_p)  process_person_fn,
void *  user_data_p,
FieldTrialServiceData ft_service_data_p 
)

◆ AddPeopleToJSON()

bool AddPeopleToJSON ( LinkedList people_p,
const char *const  key_s,
json_t *  json_p,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ AddPeopleFromJSON()

OperationStatus AddPeopleFromJSON ( const json_t *  people_json_p,
bool(*)(Person *person_p, void *user_data_p, MEM_FLAG *mem_p)  add_person_fn,
void *  user_data_p,
const FieldTrialServiceData service_data_p 
)

◆ AddPeopleAsFrictionlessData()

bool AddPeopleAsFrictionlessData ( LinkedList people_p,
const char *const  key_s,
json_t *  json_p,
const FieldTrialServiceData data_p 
)