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.
row_jobs.h File Reference
Include dependency graph for row_jobs.h:

Go to the source code of this file.

Functions

RowGetRowByRackIndex (const int32 row, Plot *plot_p, const bool expand_fields_flag, const FieldTrialServiceData *data_p)
 
RowGetRowByStudyIndex (const int32 by_study_index, Study *study_p, const ViewFormat format, FieldTrialServiceData *data_p)
 
LinkedListGetAllRowsContainingMaterial (Material *material_p, const FieldTrialServiceData *data_p)
 
OperationStatus AddObservationValueToStandardRow (StandardRow *row_p, const uint32 row_index, const char *key_s, const json_t *value_p, ServiceJob *job_p, FieldTrialServiceData *data_p)
 
OperationStatus AddTreatmentFactorValuesToStandardRow (StandardRow *row_p, json_t *plot_json_p, Study *study_p, FieldTrialServiceData *data_p)
 
OperationStatus AddStatsValuesToBaseRow (Row *row_p, json_t *stas_json_p, Study *study_p, ServiceJob *job_p, const uint32 row_index, FieldTrialServiceData *data_p)
 
bool AddTreatmentFactorValueToRowByParts (StandardRow *row_p, TreatmentFactor *tf_p, const char *value_s)
 
json_t * GetRowAsFrictionlessData (const Row *row_p, const Study *const study_p, const FieldTrialServiceData *service_data_p, const char *const null_sequence_s)
 
bool AddRowFrictionlessDataDetails (const Row *row_p, json_t *row_fd_p, const FieldTrialServiceData *service_data_p, const char *const null_sequence_s)
 
ObservationGetMatchingObservation (const StandardRow *row_p, const MeasuredVariable *variable_p, const struct tm *start_date_p, const struct tm *end_date_p, const uint32 *index_p)
 
ObservationNodeGetMatchingObservationNode (const StandardRow *row_p, const MeasuredVariable *variable_p, const struct tm *start_date_p, const struct tm *end_date_p, const uint32 *index_p)
 
void RemoveObservationNode (const StandardRow *row_p, ObservationNode *node_p)
 
OperationStatus AddSingleTreatmentFactorValueToStandardRow (StandardRow *row_p, const char *key_s, const char *value_s, Study *study_p, ServiceJob *job_p, const uint32 row_index, FieldTrialServiceData *data_p)
 
bool GetDiscardValueFromSubmissionJSON (const json_t *row_json_p)
 
bool GetBlankValueFromSubmissionJSON (const json_t *row_json_p)
 
RowGetRowByIdString (const char *row_id_s, const ViewFormat format, const FieldTrialServiceData *data_p)
 
char * GetRowsNameKey (void)
 
void FreeRowsNameKey (char *key_s)
 
OperationStatus AddObservationValueToStandardRowByParts (ServiceJob *job_p, StandardRow *row_p, MeasuredVariable *measured_variable_p, struct tm *start_date_p, struct tm *end_date_p, const char *key_s, const json_t *raw_value_p, const json_t *corrected_value_p, const char *notes_s, const uint32 observation_index, bool *free_measured_variable_flag_p, void(*on_error_callback_fn)(ServiceJob *job_p, const char *const observation_field_s, const void *value_p, void *user_data_p), void *user_data_p)
 

Function Documentation

◆ GetRowByRackIndex()

Row* GetRowByRackIndex ( const int32  row,
Plot plot_p,
const bool  expand_fields_flag,
const FieldTrialServiceData data_p 
)

◆ GetRowByStudyIndex()

Row* GetRowByStudyIndex ( const int32  by_study_index,
Study study_p,
const ViewFormat  format,
FieldTrialServiceData data_p 
)

◆ GetAllRowsContainingMaterial()

LinkedList* GetAllRowsContainingMaterial ( Material material_p,
const FieldTrialServiceData data_p 
)

◆ AddObservationValueToStandardRow()

OperationStatus AddObservationValueToStandardRow ( StandardRow row_p,
const uint32  row_index,
const char *  key_s,
const json_t *  value_p,
ServiceJob job_p,
FieldTrialServiceData data_p 
)

◆ AddTreatmentFactorValuesToStandardRow()

OperationStatus AddTreatmentFactorValuesToStandardRow ( StandardRow row_p,
json_t *  plot_json_p,
Study study_p,
FieldTrialServiceData data_p 
)

◆ AddStatsValuesToBaseRow()

OperationStatus AddStatsValuesToBaseRow ( Row row_p,
json_t *  stas_json_p,
Study study_p,
ServiceJob job_p,
const uint32  row_index,
FieldTrialServiceData data_p 
)

◆ AddTreatmentFactorValueToRowByParts()

bool AddTreatmentFactorValueToRowByParts ( StandardRow row_p,
TreatmentFactor tf_p,
const char *  value_s 
)

◆ GetRowAsFrictionlessData()

json_t* GetRowAsFrictionlessData ( const Row row_p,
const Study *const  study_p,
const FieldTrialServiceData service_data_p,
const char *const  null_sequence_s 
)

◆ AddRowFrictionlessDataDetails()

bool AddRowFrictionlessDataDetails ( const Row row_p,
json_t *  row_fd_p,
const FieldTrialServiceData service_data_p,
const char *const  null_sequence_s 
)

◆ GetMatchingObservation()

Observation* GetMatchingObservation ( const StandardRow row_p,
const MeasuredVariable variable_p,
const struct tm *  start_date_p,
const struct tm *  end_date_p,
const uint32 *  index_p 
)

◆ GetMatchingObservationNode()

ObservationNode* GetMatchingObservationNode ( const StandardRow row_p,
const MeasuredVariable variable_p,
const struct tm *  start_date_p,
const struct tm *  end_date_p,
const uint32 *  index_p 
)

◆ RemoveObservationNode()

void RemoveObservationNode ( const StandardRow row_p,
ObservationNode node_p 
)

◆ AddSingleTreatmentFactorValueToStandardRow()

OperationStatus AddSingleTreatmentFactorValueToStandardRow ( StandardRow row_p,
const char *  key_s,
const char *  value_s,
Study study_p,
ServiceJob job_p,
const uint32  row_index,
FieldTrialServiceData data_p 
)

◆ GetDiscardValueFromSubmissionJSON()

bool GetDiscardValueFromSubmissionJSON ( const json_t *  row_json_p)

◆ GetBlankValueFromSubmissionJSON()

bool GetBlankValueFromSubmissionJSON ( const json_t *  row_json_p)

◆ GetRowByIdString()

Row* GetRowByIdString ( const char *  row_id_s,
const ViewFormat  format,
const FieldTrialServiceData data_p 
)

◆ GetRowsNameKey()

char* GetRowsNameKey ( void  )

◆ FreeRowsNameKey()

void FreeRowsNameKey ( char *  key_s)

◆ AddObservationValueToStandardRowByParts()

OperationStatus AddObservationValueToStandardRowByParts ( ServiceJob job_p,
StandardRow row_p,
MeasuredVariable measured_variable_p,
struct tm *  start_date_p,
struct tm *  end_date_p,
const char *  key_s,
const json_t *  raw_value_p,
const json_t *  corrected_value_p,
const char *  notes_s,
const uint32  observation_index,
bool *  free_measured_variable_flag_p,
void(*)(ServiceJob *job_p, const char *const observation_field_s, const void *value_p, void *user_data_p)  on_error_callback_fn,
void *  user_data_p 
)