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_PERSON_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_PERSON_H_
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 #ifdef ALLOCATE_STUDY_TAGS
38 #define PERSON_PREFIX DFW_FIELD_TRIAL_SERVICE_LOCAL
39 #define PERSON_VAL(x) = x
40 #define PERSON_CONCAT_VAL(x,y) = x y
42 #define PERSON_PREFIX extern
44 #define PERSON_CONCAT_VAL(x,y)
81 PERSON_PREFIX
const char *PE_ORCID_S
PERSON_VAL (
"orcid");
bool AddPersonToCompoundJSON(const Person *person_p, json_t *parent_json_p, const char *const key_s, const ViewFormat format, const FieldTrialServiceData *data_p)
void FreePerson(Person *person_p)
Person * pn_person_p
Definition: person.h:69
Person * AllocatePerson(const char *name_s, const char *email_s, const char *role_s, const char *affiliaion_s, const char *orcid_s)
PersonNode * AllocatePersonNode(Person *person_p)
json_t * GetPersonAsJSON(const Person *const person_p, const ViewFormat format, const FieldTrialServiceData *data_p)
Person * GetPersonFromCompoundJSON(const json_t *json_p, const char *const key_s, const ViewFormat format, const FieldTrialServiceData *data_p)
const PERSON_PREFIX char *PE_NAME_S PERSON_CONCAT_VAL(CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
void FreePersonNode(ListItem *person_node_p)
Person * GetPersonFromJSON(const json_t *parent_p, const ViewFormat format, const FieldTrialServiceData *data_p)
ListItem pn_node
Definition: person.h:67
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
#define CONTEXT_PREFIX_SCHEMA_ORG_S
Definition: schema_keys.h:103
char * pe_name_s
Definition: person.h:53
char * pe_orcid_s
Definition: person.h:61
json_t * GetPersonAsFrictionlessData(const Person *const person_p)
void ClearPerson(Person *person_p)
char * pe_role_s
Definition: person.h:59
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
char * pe_affiliation_s
Definition: person.h:57
const PERSON_PREFIX char *PE_ORCID_S PERSON_VAL("orcid")
void InitPerson(Person *person_p)
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43
char * pe_email_s
Definition: person.h:55