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_ROW_H_
24 #define SERVICES_FIELD_TRIALS_INCLUDE_ROW_H_
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68 #ifdef ALLOCATE_STANDARD_ROW_TAGS
69 #define STANDARD_ROW_PREFIX DFW_FIELD_TRIAL_SERVICE_API
70 #define STANDARD_ROW_VAL(x) = x
71 #define STANDARD_ROW_CONCAT_VAL(x,y) = x y
73 #define STANDARD_ROW_PREFIX extern
74 #define STANDARD_ROW_VAL(x)
75 #define STANDARD_ROW_CONCAT_VAL(x,y)
82 STANDARD_ROW_PREFIX
const char *SR_RACK_INDEX_S
STANDARD_ROW_VAL (
"rack_index");
85 STANDARD_ROW_PREFIX
const char *SR_REPLICATE_S
STANDARD_ROW_VAL (
"replicate");
87 STANDARD_ROW_PREFIX
const char *SR_MATERIAL_ID_S
STANDARD_ROW_VAL (
"material_id");
92 STANDARD_ROW_PREFIX
const char *SR_STORE_CODE_S
STANDARD_ROW_VAL (
"store_code");
95 STANDARD_ROW_PREFIX
const char *SR_OBSERVATIONS_S
STANDARD_ROW_VAL (
"observations");
97 STANDARD_ROW_PREFIX
const char *SR_TREATMENTS_S
STANDARD_ROW_VAL (
"treatments");
100 STANDARD_ROW_PREFIX
const char *SR_REPLICATE_CONTROL_S
STANDARD_ROW_VAL (
"control");
108 STANDARD_ROW_PREFIX
const char *SR_PLOT_INDEX_S
STANDARD_ROW_VAL (
"Plot index");
Definition: standard_row.h:39
MEM_FLAG sr_material_mem
Definition: standard_row.h:51
MEM_FLAG
An enum specifying the particular status of a piece of dynamically allocated memory for a particular ...
Definition: memory_allocations.h:38
void SetStandardRowGenotypeControl(StandardRow *row_p, bool control_flag)
LinkedList * sr_treatment_factor_values_p
Definition: standard_row.h:55
StandardRow * AllocateStandardRow(bson_oid_t *id_p, const uint32 rack_index, const uint32 study_index, const bool replicate_control_flag, const uint32 replicate, Material *material_p, MEM_FLAG material_mem, const char *const store_code_s, Plot *parent_plot_p)
Definition: material.h:121
bool sr_replicate_control_flag
Definition: standard_row.h:59
LinkedList * sr_observations_p
Definition: standard_row.h:53
#define DFW_FIELD_TRIAL_SERVICE_LOCAL
Definition: dfw_field_trial_service_library.h:43
uint32 sr_rack_index
The row factor/category for this rack within its parent plot.
Definition: standard_row.h:47
bool AddStandardRowToJSON(const Row *row_p, json_t *row_json_p, const ViewFormat format, const FieldTrialServiceData *data_p)
bool AddStandardRowToPlotTable(const StandardRow *row_p, json_t *row_json_p, const FieldTrialServiceData *service_data_p)
uint32 sr_replicate_index
Definition: standard_row.h:57
A doubly-linked list that can be traversed in either direction.
Definition: linked_list.h:56
bool AddTreatmentFactorValueToStandardRow(StandardRow *row_p, TreatmentFactorValue *tf_value_p)
const STANDARD_ROW_PREFIX char *SR_RACK_INDEX_S STANDARD_ROW_VAL("rack_index")
void UpdateStandardRow(StandardRow *row_p, const uint32 rack_index, const bool replicate_control_flag, const uint32 replicate, Material *material_p, MEM_FLAG material_mem, const char *const store_code_s)
StandardRow * GetStandardRowFromJSON(const json_t *json_p, Plot *plot_p, Material *material_p, const struct Study *study_p, const ViewFormat format, FieldTrialServiceData *data_p)
bool AddObservationToStandardRow(StandardRow *row_p, Observation *observation_p)
Material * sr_material_p
Definition: standard_row.h:49
A datatype for storing a phneotypic observation within an experiment.
Definition: observation.h:63
Row sr_base
Definition: standard_row.h:41
The configuration data used by the DFW Field Trial Service.
Definition: dfw_field_trial_service_data.h:118
bool SetStandardRowStoreCode(StandardRow *row_p, const char *const store_code_s)
Definition: treatment_factor_value.h:32
char * sr_store_code_s
Definition: standard_row.h:61
bool IsStandardRowGenotypeControl(const StandardRow *row_p)