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.
standard_row.h File Reference
#include "material.h"
#include "plot.h"
#include "observation.h"
#include "treatment_factor_value.h"
#include "row.h"
Include dependency graph for standard_row.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  StandardRow
 

Functions

const STANDARD_ROW_PREFIX char *SR_RACK_INDEX_S STANDARD_ROW_VAL ("rack_index")
 
const STANDARD_ROW_PREFIX char *SR_REPLICATE_S STANDARD_ROW_VAL ("replicate")
 
const STANDARD_ROW_PREFIX char *SR_MATERIAL_ID_S STANDARD_ROW_VAL ("material_id")
 
const STANDARD_ROW_PREFIX char *SR_MATERIAL_S STANDARD_ROW_VAL ("material")
 
const STANDARD_ROW_PREFIX char *SR_STORE_CODE_S STANDARD_ROW_VAL ("store_code")
 
const STANDARD_ROW_PREFIX char *SR_OBSERVATIONS_S STANDARD_ROW_VAL ("observations")
 
const STANDARD_ROW_PREFIX char *SR_TREATMENTS_S STANDARD_ROW_VAL ("treatments")
 
const STANDARD_ROW_PREFIX char *SR_REPLICATE_CONTROL_S STANDARD_ROW_VAL ("control")
 
const STANDARD_ROW_PREFIX char *SR_IMPORT_RACK_S STANDARD_ROW_VAL ("Rack")
 
const STANDARD_ROW_PREFIX char *SR_PLOT_INDEX_S STANDARD_ROW_VAL ("Plot index")
 
StandardRowAllocateStandardRow (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)
 
StandardRowGetStandardRowFromJSON (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)
 
void SetStandardRowGenotypeControl (StandardRow *row_p, bool control_flag)
 
bool IsStandardRowGenotypeControl (const StandardRow *row_p)
 
bool SetStandardRowStoreCode (StandardRow *row_p, const char *const store_code_s)
 
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)
 
bool AddTreatmentFactorValueToStandardRow (StandardRow *row_p, TreatmentFactorValue *tf_value_p)
 
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)
 

Function Documentation

◆ STANDARD_ROW_VAL() [1/10]

const STANDARD_ROW_PREFIX char* SR_RACK_INDEX_S STANDARD_ROW_VAL ( "rack_index"  )

◆ STANDARD_ROW_VAL() [2/10]

const STANDARD_ROW_PREFIX char* SR_REPLICATE_S STANDARD_ROW_VAL ( "replicate"  )

◆ STANDARD_ROW_VAL() [3/10]

const STANDARD_ROW_PREFIX char* SR_MATERIAL_ID_S STANDARD_ROW_VAL ( "material_id"  )

◆ STANDARD_ROW_VAL() [4/10]

const STANDARD_ROW_PREFIX char* SR_MATERIAL_S STANDARD_ROW_VAL ( "material"  )

◆ STANDARD_ROW_VAL() [5/10]

const STANDARD_ROW_PREFIX char* SR_STORE_CODE_S STANDARD_ROW_VAL ( "store_code"  )

◆ STANDARD_ROW_VAL() [6/10]

const STANDARD_ROW_PREFIX char* SR_OBSERVATIONS_S STANDARD_ROW_VAL ( "observations"  )

◆ STANDARD_ROW_VAL() [7/10]

const STANDARD_ROW_PREFIX char* SR_TREATMENTS_S STANDARD_ROW_VAL ( "treatments"  )

◆ STANDARD_ROW_VAL() [8/10]

const STANDARD_ROW_PREFIX char* SR_REPLICATE_CONTROL_S STANDARD_ROW_VAL ( "control"  )

◆ STANDARD_ROW_VAL() [9/10]

const STANDARD_ROW_PREFIX char* SR_IMPORT_RACK_S STANDARD_ROW_VAL ( "Rack"  )

◆ STANDARD_ROW_VAL() [10/10]

const STANDARD_ROW_PREFIX char* SR_PLOT_INDEX_S STANDARD_ROW_VAL ( "Plot index"  )

◆ AllocateStandardRow()

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 
)

◆ GetStandardRowFromJSON()

StandardRow* GetStandardRowFromJSON ( const json_t *  json_p,
Plot plot_p,
Material material_p,
const struct Study study_p,
const ViewFormat  format,
FieldTrialServiceData data_p 
)

◆ AddObservationToStandardRow()

bool AddObservationToStandardRow ( StandardRow row_p,
Observation observation_p 
)

◆ SetStandardRowGenotypeControl()

void SetStandardRowGenotypeControl ( StandardRow row_p,
bool  control_flag 
)

◆ IsStandardRowGenotypeControl()

bool IsStandardRowGenotypeControl ( const StandardRow row_p)

◆ SetStandardRowStoreCode()

bool SetStandardRowStoreCode ( StandardRow row_p,
const char *const  store_code_s 
)

◆ UpdateStandardRow()

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 
)

◆ AddTreatmentFactorValueToStandardRow()

bool AddTreatmentFactorValueToStandardRow ( StandardRow row_p,
TreatmentFactorValue tf_value_p 
)

◆ AddStandardRowToJSON()

bool AddStandardRowToJSON ( const Row row_p,
json_t *  row_json_p,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ AddStandardRowToPlotTable()

bool AddStandardRowToPlotTable ( const StandardRow row_p,
json_t *  row_json_p,
const FieldTrialServiceData service_data_p 
)