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.h File Reference
#include "dfw_field_trial_service_data.h"
#include "dfw_field_trial_service_library.h"
#include "jansson.h"
#include "address.h"
#include "typedefs.h"
#include "linked_list.h"
Include dependency graph for person.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Person
 
struct  PersonNode
 

Functions

const PERSON_PREFIX char *PE_NAME_S PERSON_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
 
const PERSON_PREFIX char *PE_EMAIL_S PERSON_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "email")
 
const PERSON_PREFIX char *PE_AFFILATION_S PERSON_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "affiliation")
 
const PERSON_PREFIX char *PE_ROLE_S PERSON_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "roleName")
 
const PERSON_PREFIX char *PE_ORCID_S PERSON_VAL ("orcid")
 
PersonAllocatePerson (const char *name_s, const char *email_s, const char *role_s, const char *affiliaion_s, const char *orcid_s)
 
void InitPerson (Person *person_p)
 
void FreePerson (Person *person_p)
 
void ClearPerson (Person *person_p)
 
json_t * GetPersonAsJSON (const Person *const person_p, const ViewFormat format, const FieldTrialServiceData *data_p)
 
PersonGetPersonFromJSON (const json_t *parent_p, const ViewFormat format, const FieldTrialServiceData *data_p)
 
bool AddPersonToCompoundJSON (const Person *person_p, json_t *parent_json_p, const char *const key_s, const ViewFormat format, const FieldTrialServiceData *data_p)
 
PersonGetPersonFromCompoundJSON (const json_t *json_p, const char *const key_s, const ViewFormat format, const FieldTrialServiceData *data_p)
 
PersonNodeAllocatePersonNode (Person *person_p)
 
void FreePersonNode (ListItem *person_node_p)
 
json_t * GetPersonAsFrictionlessData (const Person *const person_p)
 

Function Documentation

◆ PERSON_CONCAT_VAL() [1/4]

const PERSON_PREFIX char* PE_NAME_S PERSON_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"name"   
)

◆ PERSON_CONCAT_VAL() [2/4]

const PERSON_PREFIX char* PE_EMAIL_S PERSON_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"email"   
)

◆ PERSON_CONCAT_VAL() [3/4]

const PERSON_PREFIX char* PE_AFFILATION_S PERSON_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"affiliation"   
)

◆ PERSON_CONCAT_VAL() [4/4]

const PERSON_PREFIX char* PE_ROLE_S PERSON_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"roleName"   
)

◆ PERSON_VAL()

const PERSON_PREFIX char* PE_ORCID_S PERSON_VAL ( "orcid"  )

◆ AllocatePerson()

Person* AllocatePerson ( const char *  name_s,
const char *  email_s,
const char *  role_s,
const char *  affiliaion_s,
const char *  orcid_s 
)

◆ InitPerson()

void InitPerson ( Person person_p)

◆ FreePerson()

void FreePerson ( Person person_p)

◆ ClearPerson()

void ClearPerson ( Person person_p)

◆ GetPersonAsJSON()

json_t* GetPersonAsJSON ( const Person *const  person_p,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ GetPersonFromJSON()

Person* GetPersonFromJSON ( const json_t *  parent_p,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ AddPersonToCompoundJSON()

bool AddPersonToCompoundJSON ( const Person person_p,
json_t *  parent_json_p,
const char *const  key_s,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ GetPersonFromCompoundJSON()

Person* GetPersonFromCompoundJSON ( const json_t *  json_p,
const char *const  key_s,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ AllocatePersonNode()

PersonNode* AllocatePersonNode ( Person person_p)

◆ FreePersonNode()

void FreePersonNode ( ListItem person_node_p)

◆ GetPersonAsFrictionlessData()

json_t* GetPersonAsFrictionlessData ( const Person *const  person_p)