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_DFW_FIELD_TRIAL_SERVICE_INCLUDE_GERMPLASM_H_
24 #define SERVICES_DFW_FIELD_TRIAL_SERVICE_INCLUDE_GERMPLASM_H_
47 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 #ifdef ALLOCATE_GENE_BANK_TAGS
50 #define GENE_BANK_PREFIX DFW_FIELD_TRIAL_SERVICE_LOCAL
51 #define GENE_BANK_VAL(x) = x
52 #define GENE_BANK_CONCAT_VAL(x,y) = x y
54 #define GENE_BANK_PREFIX extern
55 #define GENE_BANK_VAL(x)
56 #define GENE_BANK_CONCAT_VAL(x,y)
72 GENE_BANK_PREFIX
const char *GB_API_URL_S
GENE_BANK_VAL (
"api_url");
GeneBank * AllocateGeneBank(bson_oid_t *id_p, const char *name_s, const char *url_s, const char *api_url_s)
char * gb_api_url_s
Definition: gene_bank.h:42
json_t * GetGeneBankAsJSON(const GeneBank *gene_bank_p, const ViewFormat format, const char *const api_query_s)
bson_oid_t * gb_id_p
Definition: gene_bank.h:36
#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
bool SaveGeneBank(GeneBank *gene_bank_p, FieldTrialServiceData *data_p)
char * gb_url_s
Definition: gene_bank.h:40
void FreeGeneBank(GeneBank *germplasm_p)
GeneBank * GetGeneBankById(const bson_oid_t *id_p, const ViewFormat format, const FieldTrialServiceData *data_p)
GeneBank * GetGeneBankFromJSON(const json_t *germplasm_json_p)
const GENE_BANK_PREFIX char *GB_API_URL_S GENE_BANK_VAL("api_url")
Definition: gene_bank.h:34
char * gb_name_s
Definition: gene_bank.h:38
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
const GENE_BANK_PREFIX char *GB_NAME_S GENE_BANK_CONCAT_VAL(CONTEXT_PREFIX_SCHEMA_ORG_S, "name")
GeneBank * GetGeneBankByName(const char *name_s, const FieldTrialServiceData *data_p)
GeneBank * GetGeneBankByIdString(const char *gene_bank_id_s, const ViewFormat format, const FieldTrialServiceData *data_p)