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.
integer_observation.h File Reference
#include "observation.h"
#include "typedefs.h"
Include dependency graph for integer_observation.h:

Go to the source code of this file.

Data Structures

struct  IntegerObservation
 

Functions

IntegerObservationAllocateIntegerObservation (bson_oid_t *id_p, const struct tm *start_date_p, const struct tm *end_date_p, MeasuredVariable *phenotype_p, MEM_FLAG phenotype_mem, const int32 *raw_value_p, const int32 *corrected_value_p, const char *growth_stage_s, const char *method_s, Instrument *instrument_p, const ObservationNature nature, const uint32 *index_p, const char *notes_s)
 
void ClearIntegerObservation (Observation *observation_p)
 
json_t * GetIntegerObservationAsJSON (const IntegerObservation *observation_p, const ViewFormat format)
 
IntegerObservationGetIntegerObservationFromJSON (const json_t *phenotype_json_p, FieldTrialServiceData *data_p)
 
bool SetIntegerObservationRawValueFromString (IntegerObservation *observation_p, const char *value_s)
 
bool SetIntegerObservationCorrectedValueFromString (IntegerObservation *observation_p, const char *value_s)
 
bool SetIntegerObservationRawValueFromJSON (IntegerObservation *observation_p, const json_t *value_p)
 
bool SetIntegerObservationCorrectedValueFromJSON (IntegerObservation *observation_p, const json_t *value_p)
 
bool AddIntegerObservationRawValueToJSON (const IntegerObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
 
bool AddIntegerObservationCorrectedValueToJSON (const IntegerObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
 
bool AddIntegerObservationValuesToJSON (const Observation *obs_p, const char *raw_key_s, const char *corrected_key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
 
bool GetIntegerObservationRawValueAsString (IntegerObservation *observation_p, char **value_ss, bool *free_flag_p)
 
bool GetIntegerObservationCorrectedValueAsString (IntegerObservation *observation_p, char **value_ss, bool *free_flag_p)
 

Function Documentation

◆ AllocateIntegerObservation()

IntegerObservation* AllocateIntegerObservation ( bson_oid_t *  id_p,
const struct tm *  start_date_p,
const struct tm *  end_date_p,
MeasuredVariable phenotype_p,
MEM_FLAG  phenotype_mem,
const int32 *  raw_value_p,
const int32 *  corrected_value_p,
const char *  growth_stage_s,
const char *  method_s,
Instrument instrument_p,
const ObservationNature  nature,
const uint32 *  index_p,
const char *  notes_s 
)

◆ ClearIntegerObservation()

void ClearIntegerObservation ( Observation observation_p)

◆ GetIntegerObservationAsJSON()

json_t* GetIntegerObservationAsJSON ( const IntegerObservation observation_p,
const ViewFormat  format 
)

◆ GetIntegerObservationFromJSON()

IntegerObservation* GetIntegerObservationFromJSON ( const json_t *  phenotype_json_p,
FieldTrialServiceData data_p 
)

◆ SetIntegerObservationRawValueFromString()

bool SetIntegerObservationRawValueFromString ( IntegerObservation observation_p,
const char *  value_s 
)

◆ SetIntegerObservationCorrectedValueFromString()

bool SetIntegerObservationCorrectedValueFromString ( IntegerObservation observation_p,
const char *  value_s 
)

◆ SetIntegerObservationRawValueFromJSON()

bool SetIntegerObservationRawValueFromJSON ( IntegerObservation observation_p,
const json_t *  value_p 
)

◆ SetIntegerObservationCorrectedValueFromJSON()

bool SetIntegerObservationCorrectedValueFromJSON ( IntegerObservation observation_p,
const json_t *  value_p 
)

◆ AddIntegerObservationRawValueToJSON()

bool AddIntegerObservationRawValueToJSON ( const IntegerObservation obs_p,
const char *  key_s,
json_t *  json_p,
const char *  null_sequence_s,
bool  only_if_exists_flag 
)

◆ AddIntegerObservationCorrectedValueToJSON()

bool AddIntegerObservationCorrectedValueToJSON ( const IntegerObservation obs_p,
const char *  key_s,
json_t *  json_p,
const char *  null_sequence_s,
bool  only_if_exists_flag 
)

◆ AddIntegerObservationValuesToJSON()

bool AddIntegerObservationValuesToJSON ( const Observation obs_p,
const char *  raw_key_s,
const char *  corrected_key_s,
json_t *  json_p,
const char *  null_sequence_s,
bool  only_if_exists_flag 
)

◆ GetIntegerObservationRawValueAsString()

bool GetIntegerObservationRawValueAsString ( IntegerObservation observation_p,
char **  value_ss,
bool *  free_flag_p 
)

◆ GetIntegerObservationCorrectedValueAsString()

bool GetIntegerObservationCorrectedValueAsString ( IntegerObservation observation_p,
char **  value_ss,
bool *  free_flag_p 
)