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_INSTRUMENT_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_INSTRUMENT_H_
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 #ifdef ALLOCATE_INSTRUMENT_TAGS
48 #define INSTRUMENT_PREFIX DFW_FIELD_TRIAL_SERVICE_LOCAL
49 #define INSTRUMENT_VAL(x) = x
50 #define INSTRUMENT_CONCAT_VAL(x,y) = x y
52 #define INSTRUMENT_PREFIX extern
53 #define INSTRUMENT_VAL(x)
54 #define INSTRUMENT_CONCAT_VAL(x,y)
Definition: instrument.h:33
char * in_model_s
Definition: instrument.h:39
bson_oid_t * in_id_p
Definition: instrument.h:35
Instrument * GetInstrumentById(const bson_oid_t *instrument_id_p, const FieldTrialServiceData *data_p)
#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 * in_name_s
Definition: instrument.h:37
const INSTRUMENT_PREFIX char *IN_MODEL_S INSTRUMENT_VAL("model")
const INSTRUMENT_PREFIX char *IN_NAME_S INSTRUMENT_CONCAT_VAL(CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
json_t * GetInstrumentAsJSON(const Instrument *instrument_p)
Instrument * AllocateInstrument(bson_oid_t *id_p, const char *name_s, const char *model_s)
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
bool SaveInstrument(Instrument *instrument_p, const FieldTrialServiceData *data_p)
void FreeInstrument(Instrument *instrument_p)
Instrument * GetInstrumentFromJSON(const json_t *phenotype_json_p)