#include "observation.h"
#include "typedefs.h"
#include <time.h>
 
Go to the source code of this file.
 | 
| TimeObservation *  | AllocateTimeObservation (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 struct tm *raw_value_p, const struct tm *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  | ClearTimeObservation (Observation *observation_p) | 
|   | 
| json_t *  | GetTimeObservationAsJSON (const TimeObservation *observation_p, const ViewFormat format) | 
|   | 
| TimeObservation *  | GetTimeObservationFromJSON (const json_t *phenotype_json_p, FieldTrialServiceData *data_p) | 
|   | 
| bool  | SetTimeObservationRawValueFromString (TimeObservation *observation_p, const char *value_s) | 
|   | 
| bool  | SetTimeObservationCorrectedValueFromString (TimeObservation *observation_p, const char *value_s) | 
|   | 
| bool  | SetTimeObservationRawValueFromJSON (TimeObservation *observation_p, const json_t *value_p) | 
|   | 
| bool  | SetTimeObservationCorrectedValueFromJSON (TimeObservation *observation_p, const json_t *value_p) | 
|   | 
| bool  | AddTimeObservationRawValueToJSON (const TimeObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag) | 
|   | 
| bool  | AddTimeObservationCorrectedValueToJSON (const TimeObservation *obs_p, const char *key_s, json_t *json_p, const char *null_sequence_s, bool only_if_exists_flag) | 
|   | 
| bool  | AddTimeObservationValuesToJSON (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  | GetTimeObservationRawValueAsString (TimeObservation *observation_p, char **value_ss, bool *free_flag_p) | 
|   | 
| bool  | GetTimeObservationCorrectedValueAsString (TimeObservation *observation_p, char **value_ss, bool *free_flag_p) | 
|   | 
◆ AllocateTimeObservation()
      
        
          | TimeObservation* AllocateTimeObservation  | 
          ( | 
          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 struct tm *  | 
          raw_value_p,  | 
        
        
           | 
           | 
          const struct tm *  | 
          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  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ ClearTimeObservation()
      
        
          | void ClearTimeObservation  | 
          ( | 
          Observation *  | 
          observation_p | ) | 
           | 
        
      
 
 
◆ GetTimeObservationAsJSON()
◆ GetTimeObservationFromJSON()
◆ SetTimeObservationRawValueFromString()
      
        
          | bool SetTimeObservationRawValueFromString  | 
          ( | 
          TimeObservation *  | 
          observation_p,  | 
        
        
           | 
           | 
          const char *  | 
          value_s  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ SetTimeObservationCorrectedValueFromString()
      
        
          | bool SetTimeObservationCorrectedValueFromString  | 
          ( | 
          TimeObservation *  | 
          observation_p,  | 
        
        
           | 
           | 
          const char *  | 
          value_s  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ SetTimeObservationRawValueFromJSON()
      
        
          | bool SetTimeObservationRawValueFromJSON  | 
          ( | 
          TimeObservation *  | 
          observation_p,  | 
        
        
           | 
           | 
          const json_t *  | 
          value_p  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ SetTimeObservationCorrectedValueFromJSON()
      
        
          | bool SetTimeObservationCorrectedValueFromJSON  | 
          ( | 
          TimeObservation *  | 
          observation_p,  | 
        
        
           | 
           | 
          const json_t *  | 
          value_p  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AddTimeObservationRawValueToJSON()
      
        
          | bool AddTimeObservationRawValueToJSON  | 
          ( | 
          const TimeObservation *  | 
          obs_p,  | 
        
        
           | 
           | 
          const char *  | 
          key_s,  | 
        
        
           | 
           | 
          json_t *  | 
          json_p,  | 
        
        
           | 
           | 
          const char *  | 
          null_sequence_s,  | 
        
        
           | 
           | 
          bool  | 
          only_if_exists_flag  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AddTimeObservationCorrectedValueToJSON()
      
        
          | bool AddTimeObservationCorrectedValueToJSON  | 
          ( | 
          const TimeObservation *  | 
          obs_p,  | 
        
        
           | 
           | 
          const char *  | 
          key_s,  | 
        
        
           | 
           | 
          json_t *  | 
          json_p,  | 
        
        
           | 
           | 
          const char *  | 
          null_sequence_s,  | 
        
        
           | 
           | 
          bool  | 
          only_if_exists_flag  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ AddTimeObservationValuesToJSON()
      
        
          | bool AddTimeObservationValuesToJSON  | 
          ( | 
          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  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ GetTimeObservationRawValueAsString()
      
        
          | bool GetTimeObservationRawValueAsString  | 
          ( | 
          TimeObservation *  | 
          observation_p,  | 
        
        
           | 
           | 
          char **  | 
          value_ss,  | 
        
        
           | 
           | 
          bool *  | 
          free_flag_p  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ GetTimeObservationCorrectedValueAsString()
      
        
          | bool GetTimeObservationCorrectedValueAsString  | 
          ( | 
          TimeObservation *  | 
          observation_p,  | 
        
        
           | 
           | 
          char **  | 
          value_ss,  | 
        
        
           | 
           | 
          bool *  | 
          free_flag_p  | 
        
        
           | 
          ) | 
           |  |