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.
|
#include "dfw_field_trial_service_library.h"
#include "dfw_field_trial_service_data.h"
#include "treatment.h"
#include "linked_list.h"
Go to the source code of this file.
Data Structures | |
struct | TreatmentFactor |
A TreatmentFactor is a set of values for a Treatment applied to plots within a Study. More... | |
struct | TreatmentFactorNode |
Functions | |
const TREATMENT_FACTOR_PREFIX char *TF_STUDY_ID_S | TREATMENT_FACTOR_VAL ("study_id") |
const TREATMENT_FACTOR_PREFIX char *TF_STUDY_NAME_S | TREATMENT_FACTOR_VAL ("study_name") |
const TREATMENT_FACTOR_PREFIX char *TF_TREATMENT_S | TREATMENT_FACTOR_VAL ("treatment") |
const TREATMENT_FACTOR_PREFIX char *TF_TREATMENT_ID_S | TREATMENT_FACTOR_VAL ("treatment_id") |
const TREATMENT_FACTOR_PREFIX char *TF_VALUES_S | TREATMENT_FACTOR_VAL ("values") |
const TREATMENT_FACTOR_PREFIX char *TF_VALUES_KEY_S | TREATMENT_FACTOR_CONCAT_VAL (CONTEXT_PREFIX_SCHEMA_ORG_S, "name") |
const TREATMENT_FACTOR_PREFIX char *TF_VALUES_VALUE_S | TREATMENT_FACTOR_VAL ("value") |
TreatmentFactor * | AllocateTreatmentFactor (Treatment *treatment_factor_p, struct Study *study_p) |
void | FreeTreatmentFactor (TreatmentFactor *treatment_factor_p) |
bool | AddTreatmentFactorValue (TreatmentFactor *treatment_p, const char *name_s, const char *value_s) |
TreatmentFactorNode * | AllocateTreatmentFactorNode (TreatmentFactor *treatment_factor_p) |
void | FreeTreatmentFactorNode (ListItem *treatment_node_p) |
size_t * | GetNumberOfTreatmentFactorValues (const TreatmentFactor *treatment_factor_p) |
json_t * | GetTreatmentFactorAsJSON (const TreatmentFactor *treatment_factor_p, const ViewFormat format) |
TreatmentFactor * | GetTreatmentFactorFromJSON (const json_t *treatment_factor_json_p, struct Study *parent_study_p, const FieldTrialServiceData *data_p) |
const char * | GetTreatmentFactorValue (TreatmentFactor *treatment_p, const char *name_s) |
const char * | GetTreatmentFactorName (const TreatmentFactor *treatment_factor_p) |
const char * | GetTreatmentFactorUrl (const TreatmentFactor *treatment_factor_p) |
const char * | GetTreatmentFactorDescription (const TreatmentFactor *treatment_factor_p) |
json_t * | GetTreatmentFactorValuesAsJSON (const TreatmentFactor *treatment_factor_p, const ViewFormat format) |
const TREATMENT_FACTOR_PREFIX char* TF_STUDY_ID_S TREATMENT_FACTOR_VAL | ( | "study_id" | ) |
const TREATMENT_FACTOR_PREFIX char* TF_STUDY_NAME_S TREATMENT_FACTOR_VAL | ( | "study_name" | ) |
const TREATMENT_FACTOR_PREFIX char* TF_TREATMENT_S TREATMENT_FACTOR_VAL | ( | "treatment" | ) |
const TREATMENT_FACTOR_PREFIX char* TF_TREATMENT_ID_S TREATMENT_FACTOR_VAL | ( | "treatment_id" | ) |
const TREATMENT_FACTOR_PREFIX char* TF_VALUES_S TREATMENT_FACTOR_VAL | ( | "values" | ) |
const TREATMENT_FACTOR_PREFIX char* TF_VALUES_KEY_S TREATMENT_FACTOR_CONCAT_VAL | ( | CONTEXT_PREFIX_SCHEMA_ORG_S | , |
"name" | |||
) |
const TREATMENT_FACTOR_PREFIX char* TF_VALUES_VALUE_S TREATMENT_FACTOR_VAL | ( | "value" | ) |
TreatmentFactor* AllocateTreatmentFactor | ( | Treatment * | treatment_factor_p, |
struct Study * | study_p | ||
) |
void FreeTreatmentFactor | ( | TreatmentFactor * | treatment_factor_p | ) |
bool AddTreatmentFactorValue | ( | TreatmentFactor * | treatment_p, |
const char * | name_s, | ||
const char * | value_s | ||
) |
TreatmentFactorNode* AllocateTreatmentFactorNode | ( | TreatmentFactor * | treatment_factor_p | ) |
void FreeTreatmentFactorNode | ( | ListItem * | treatment_node_p | ) |
size_t* GetNumberOfTreatmentFactorValues | ( | const TreatmentFactor * | treatment_factor_p | ) |
json_t* GetTreatmentFactorAsJSON | ( | const TreatmentFactor * | treatment_factor_p, |
const ViewFormat | format | ||
) |
TreatmentFactor* GetTreatmentFactorFromJSON | ( | const json_t * | treatment_factor_json_p, |
struct Study * | parent_study_p, | ||
const FieldTrialServiceData * | data_p | ||
) |
const char* GetTreatmentFactorValue | ( | TreatmentFactor * | treatment_p, |
const char * | name_s | ||
) |
const char* GetTreatmentFactorName | ( | const TreatmentFactor * | treatment_factor_p | ) |
const char* GetTreatmentFactorUrl | ( | const TreatmentFactor * | treatment_factor_p | ) |
const char* GetTreatmentFactorDescription | ( | const TreatmentFactor * | treatment_factor_p | ) |
json_t* GetTreatmentFactorValuesAsJSON | ( | const TreatmentFactor * | treatment_factor_p, |
const ViewFormat | format | ||
) |