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.
treatment_factor.h File Reference
Include dependency graph for treatment_factor.h:
This graph shows which files directly or indirectly include this file:

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")
 
TreatmentFactorAllocateTreatmentFactor (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)
 
TreatmentFactorNodeAllocateTreatmentFactorNode (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)
 
TreatmentFactorGetTreatmentFactorFromJSON (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)
 

Function Documentation

◆ TREATMENT_FACTOR_VAL() [1/6]

const TREATMENT_FACTOR_PREFIX char* TF_STUDY_ID_S TREATMENT_FACTOR_VAL ( "study_id"  )

◆ TREATMENT_FACTOR_VAL() [2/6]

const TREATMENT_FACTOR_PREFIX char* TF_STUDY_NAME_S TREATMENT_FACTOR_VAL ( "study_name"  )

◆ TREATMENT_FACTOR_VAL() [3/6]

const TREATMENT_FACTOR_PREFIX char* TF_TREATMENT_S TREATMENT_FACTOR_VAL ( "treatment"  )

◆ TREATMENT_FACTOR_VAL() [4/6]

const TREATMENT_FACTOR_PREFIX char* TF_TREATMENT_ID_S TREATMENT_FACTOR_VAL ( "treatment_id"  )

◆ TREATMENT_FACTOR_VAL() [5/6]

const TREATMENT_FACTOR_PREFIX char* TF_VALUES_S TREATMENT_FACTOR_VAL ( "values"  )

◆ TREATMENT_FACTOR_CONCAT_VAL()

const TREATMENT_FACTOR_PREFIX char* TF_VALUES_KEY_S TREATMENT_FACTOR_CONCAT_VAL ( CONTEXT_PREFIX_SCHEMA_ORG_S  ,
"name"   
)

◆ TREATMENT_FACTOR_VAL() [6/6]

const TREATMENT_FACTOR_PREFIX char* TF_VALUES_VALUE_S TREATMENT_FACTOR_VAL ( "value"  )

◆ AllocateTreatmentFactor()

TreatmentFactor* AllocateTreatmentFactor ( Treatment treatment_factor_p,
struct Study study_p 
)

◆ FreeTreatmentFactor()

void FreeTreatmentFactor ( TreatmentFactor treatment_factor_p)

◆ AddTreatmentFactorValue()

bool AddTreatmentFactorValue ( TreatmentFactor treatment_p,
const char *  name_s,
const char *  value_s 
)

◆ AllocateTreatmentFactorNode()

TreatmentFactorNode* AllocateTreatmentFactorNode ( TreatmentFactor treatment_factor_p)

◆ FreeTreatmentFactorNode()

void FreeTreatmentFactorNode ( ListItem treatment_node_p)

◆ GetNumberOfTreatmentFactorValues()

size_t* GetNumberOfTreatmentFactorValues ( const TreatmentFactor treatment_factor_p)

◆ GetTreatmentFactorAsJSON()

json_t* GetTreatmentFactorAsJSON ( const TreatmentFactor treatment_factor_p,
const ViewFormat  format 
)

◆ GetTreatmentFactorFromJSON()

TreatmentFactor* GetTreatmentFactorFromJSON ( const json_t *  treatment_factor_json_p,
struct Study parent_study_p,
const FieldTrialServiceData data_p 
)

◆ GetTreatmentFactorValue()

const char* GetTreatmentFactorValue ( TreatmentFactor treatment_p,
const char *  name_s 
)

◆ GetTreatmentFactorName()

const char* GetTreatmentFactorName ( const TreatmentFactor treatment_factor_p)

◆ GetTreatmentFactorUrl()

const char* GetTreatmentFactorUrl ( const TreatmentFactor treatment_factor_p)

◆ GetTreatmentFactorDescription()

const char* GetTreatmentFactorDescription ( const TreatmentFactor treatment_factor_p)

◆ GetTreatmentFactorValuesAsJSON()

json_t* GetTreatmentFactorValuesAsJSON ( const TreatmentFactor treatment_factor_p,
const ViewFormat  format 
)