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.
instrument.h File Reference
Include dependency graph for instrument.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Instrument
 

Functions

const INSTRUMENT_PREFIX char *IN_NAME_S INSTRUMENT_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
 
const INSTRUMENT_PREFIX char *IN_MODEL_S INSTRUMENT_VAL ("model")
 
InstrumentAllocateInstrument (bson_oid_t *id_p, const char *name_s, const char *model_s)
 
void FreeInstrument (Instrument *instrument_p)
 
json_t * GetInstrumentAsJSON (const Instrument *instrument_p)
 
InstrumentGetInstrumentFromJSON (const json_t *phenotype_json_p)
 
bool SaveInstrument (Instrument *instrument_p, const FieldTrialServiceData *data_p)
 
InstrumentGetInstrumentById (const bson_oid_t *instrument_id_p, const FieldTrialServiceData *data_p)
 

Function Documentation

◆ INSTRUMENT_CONCAT_VAL()

const INSTRUMENT_PREFIX char* IN_NAME_S INSTRUMENT_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"name"   
)

◆ INSTRUMENT_VAL()

const INSTRUMENT_PREFIX char* IN_MODEL_S INSTRUMENT_VAL ( "model"  )

◆ AllocateInstrument()

Instrument* AllocateInstrument ( bson_oid_t *  id_p,
const char *  name_s,
const char *  model_s 
)

◆ FreeInstrument()

void FreeInstrument ( Instrument instrument_p)

◆ GetInstrumentAsJSON()

json_t* GetInstrumentAsJSON ( const Instrument instrument_p)

◆ GetInstrumentFromJSON()

Instrument* GetInstrumentFromJSON ( const json_t *  phenotype_json_p)

◆ SaveInstrument()

bool SaveInstrument ( Instrument instrument_p,
const FieldTrialServiceData data_p 
)

◆ GetInstrumentById()

Instrument* GetInstrumentById ( const bson_oid_t *  instrument_id_p,
const FieldTrialServiceData data_p 
)