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_MATERIAL_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_MATERIAL_H_
135 #ifndef DOXYGEN_SHOULD_SKIP_THIS
137 #ifdef ALLOCATE_MATERIAL_TAGS
138 #define MATERIAL_PREFIX DFW_FIELD_TRIAL_SERVICE_LOCAL
139 #define MATERIAL_VAL(x) = x
140 #define MATERIAL_CONCAT_VAL(x,y) = x y
142 #define MATERIAL_PREFIX extern
143 #define MATERIAL_VAL(x)
144 #define MATERIAL_CONCAT_VAL(x,y)
151 MATERIAL_PREFIX
const char *MA_ID_S
MATERIAL_VAL (
"id");
153 MATERIAL_PREFIX
const char *MA_ACCESSION_S
MATERIAL_VAL (
"accession");
155 MATERIAL_PREFIX
const char *MA_BARCODE_S
MATERIAL_VAL (
"barcode");
157 MATERIAL_PREFIX
const char *MA_PEDIGREE_S
MATERIAL_VAL (
"pedigree");
159 MATERIAL_PREFIX
const char *MA_GENE_BANK_ID_S
MATERIAL_VAL (
"gene_bank_id");
161 MATERIAL_PREFIX
const char *MA_GENE_BANK_S
MATERIAL_VAL (
"gene_bank");
163 MATERIAL_PREFIX
const char *MA_EXPERIMENTAL_AREA_ID_S
MATERIAL_VAL (
"area_id");
165 MATERIAL_PREFIX
const char *MA_GERMPLASM_ID_S
MATERIAL_VAL (
"germplasm_id");
170 MATERIAL_PREFIX
const char *MA_SPECIES_S
MATERIAL_VAL (
"http://purl.obolibrary.org/obo/NCIT_C45293");
172 MATERIAL_PREFIX
const char *MA_TYPE_S
MATERIAL_VAL (
"type");
173 MATERIAL_PREFIX
const char *MA_SELECTION_REASON_S
MATERIAL_VAL (
"selection_reason");
174 MATERIAL_PREFIX
const char *MA_GENERATION_S
MATERIAL_VAL (
"generation");
175 MATERIAL_PREFIX
const char *MA_SEED_SUPPLIER_S
MATERIAL_VAL (
"seed_supplier");
176 MATERIAL_PREFIX
const char *MA_SEED_SOURCE_S
MATERIAL_VAL (
"seed_source");
177 MATERIAL_PREFIX
const char *MA_GERMPLASM_ORIGIN_S
MATERIAL_VAL (
"germplasm_origin");
178 MATERIAL_PREFIX
const char *MA_IN_GRU_S
MATERIAL_VAL (
"in_gru");
179 MATERIAL_PREFIX
const char *MA_TGW_S
MATERIAL_VAL (
"tgw");
180 MATERIAL_PREFIX
const char *MA_SEED_TREATMENT_S
MATERIAL_VAL (
"seed_treatment");
182 MATERIAL_PREFIX
const char *MA_PRIMARY_NAME_S
MATERIAL_VAL(
"primary_name");
183 MATERIAL_PREFIX
const char *MA_SECONDARY_NAME_S
MATERIAL_VAL(
"secondary_name");
184 MATERIAL_PREFIX
const char *MA_TERTIARY_NAME_S
MATERIAL_VAL(
"tertiary_name");
185 MATERIAL_PREFIX
const char *MA_STODE_CODE_S
MATERIAL_VAL(
"store_code");
187 MATERIAL_PREFIX
const char *MA_CLEANED_NAME_S
MATERIAL_VAL (
"cleaned");
198 DFW_FIELD_TRIAL_SERVICE_LOCAL Material *
AllocateMaterial (bson_oid_t *id_p,
const char *accession_s,
const char *species_s,
const char *type_s,
const char *selection_reason_s,
const char *generation_s,
const char *supplier_s,
const char *source_s,
const char *germplasm_origin_s,
const char *treatment_s,
bool gru_flag,
bool cleaned_flag, uint32 tgw,
const Study *area_p,
const bson_oid_t *gene_bank_id_p,
const FieldTrialServiceData *data_p);
Material * AllocateMaterialByGermplasmID(bson_oid_t *id_p, const char *germplasm_id_s, const Study *area_p, const FieldTrialServiceData *data_p)
char * ma_species_name_s
Definition: material.h:66
ListItem msdn_node
Definition: material.h:115
bson_oid_t * ma_id_p
Definition: material.h:123
const Study * ma_parent_area_p
Definition: material.h:64
char * ma_germplasm_origin_s
Definition: material.h:78
Material * GetOrCreateMaterialByInternalName(const char *material_s, Study *area_p, const FieldTrialServiceData *data_p)
Material * GetMaterialByAccession(const char *accession_s, GeneBank *gene_bank_p, const bool case_sensitive_flag, const FieldTrialServiceData *data_p)
bool SaveMaterial(Material *material_p, const FieldTrialServiceData *data_p)
Definition: material.h:60
Material * LoadMaterial(const int32 material_id, FieldTrialServiceData *data_p)
char * ma_seed_source_s
Definition: material.h:76
bool SetMaterialAccession(Material *material_p, const char *const accession_s)
char * ma_secondary_name_s
Optional simpler code for a toolkit line.
Definition: material.h:97
bool ma_in_gru_flag
Definition: material.h:80
Material * GetOrCreateMaterialByAccession(const char *accession_s, GeneBank *gene_bank_p, const FieldTrialServiceData *data_p)
char * ma_accession_s
Definition: material.h:127
Definition: material.h:121
Material * GetMaterialByGermplasmID(const char *material_s, Study *area_p, const FieldTrialServiceData *data_p)
MaterialStudyDetails * msdn_details_p
Definition: material.h:117
char * ma_tertiary_name_s
Optional Breeders Toolkit Number if the line is selected for the toolkit.
Definition: material.h:102
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
bson_oid_t * ma_gene_bank_id_p
Definition: material.h:125
char * ma_type_s
Definition: material.h:68
char * ma_germplasm_id_s
Definition: material.h:62
Material * AllocateMaterialByAccession(bson_oid_t *id_p, const char *accession_s, bson_oid_t *gene_bank_id_p, const FieldTrialServiceData *data_p)
bool IsMaterialComplete(const Material *const material_p)
bool ma_cleaned_flag
Definition: material.h:86
char * ma_store_code_s
Store code from the GRU.
Definition: material.h:107
Definition: gene_bank.h:34
Material * GetMaterialFromJSON(const json_t *json_p, const ViewFormat format, const FieldTrialServiceData *data_p)
char * ma_primary_name_s
Optional full name of a toolkit line.
Definition: material.h:91
void FreeMaterial(Material *material_p)
Material * AllocateMaterial(bson_oid_t *id_p, const char *accession_s, const char *species_s, const char *type_s, const char *selection_reason_s, const char *generation_s, const char *supplier_s, const char *source_s, const char *germplasm_origin_s, const char *treatment_s, bool gru_flag, bool cleaned_flag, uint32 tgw, const Study *area_p, const bson_oid_t *gene_bank_id_p, const FieldTrialServiceData *data_p)
char * ma_selection_reason_s
Definition: material.h:70
char * ma_seed_supplier_s
Definition: material.h:74
const MATERIAL_PREFIX char *MA_ID_S MATERIAL_VAL("id")
Definition: material.h:113
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
uint32 ma_tgw
Definition: material.h:82
Material * GetMaterialById(const bson_oid_t *material_id_p, const FieldTrialServiceData *data_p)
char * ma_seed_treatment_s
Definition: material.h:84
json_t * GetMaterialAsJSON(const Material *material_p, const ViewFormat format, const FieldTrialServiceData *data_p)
char * ma_generation_s
Definition: material.h:72
A doubly-linked node that points to its predecessor and successor.
Definition: linked_list.h:43