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

Go to the source code of this file.

Data Structures

struct  StringObservation
 

Functions

StringObservationAllocateStringObservation (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 char *const raw_value_s, const char *const corrected_value_s, const char *growth_stage_s, const char *method_s, Instrument *instrument_p, const ObservationNature nature, const uint32 *index_p, const char *notes_s)
 
void ClearStringObservation (Observation *observation_p)
 
json_t * GetStringObservationAsJSON (const StringObservation *observation_p, const ViewFormat format)
 
StringObservationGetStringObservationFromJSON (const json_t *phenotype_json_p, FieldTrialServiceData *data_p)
 
bool SetStringObservationRawValueFromJSON (StringObservation *observation_p, const json_t *value_p)
 
bool AddStringObservationRawValueToJSON (const StringObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
 
bool AddStringObservationCorrectedValueToJSON (const StringObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag)
 
bool AddStringObservationValuesToJSON (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)
 

Function Documentation

◆ AllocateStringObservation()

StringObservation* AllocateStringObservation ( 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 char *const  raw_value_s,
const char *const  corrected_value_s,
const char *  growth_stage_s,
const char *  method_s,
Instrument instrument_p,
const ObservationNature  nature,
const uint32 *  index_p,
const char *  notes_s 
)

◆ ClearStringObservation()

void ClearStringObservation ( Observation observation_p)

◆ GetStringObservationAsJSON()

json_t* GetStringObservationAsJSON ( const StringObservation observation_p,
const ViewFormat  format 
)

◆ GetStringObservationFromJSON()

StringObservation* GetStringObservationFromJSON ( const json_t *  phenotype_json_p,
FieldTrialServiceData data_p 
)

◆ SetStringObservationRawValueFromJSON()

bool SetStringObservationRawValueFromJSON ( StringObservation observation_p,
const json_t *  value_p 
)

◆ AddStringObservationRawValueToJSON()

bool AddStringObservationRawValueToJSON ( const StringObservation obs_p,
const char *  key_s,
json_t *  json_p,
const char *  null_sequence_s,
bool  only_if_exists_flag 
)

◆ AddStringObservationCorrectedValueToJSON()

bool AddStringObservationCorrectedValueToJSON ( const StringObservation obs_p,
const char *  key_s,
json_t *  json_p,
const char *  null_sequence_s,
bool  only_if_exists_flag 
)

◆ AddStringObservationValuesToJSON()

bool AddStringObservationValuesToJSON ( 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 
)