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.
json_parameter.h File Reference
#include "parameter.h"
#include "grassroots_service_library.h"
#include "parameter_set.h"
Include dependency graph for json_parameter.h:

Go to the source code of this file.

Data Structures

struct  JSONParameter
 

Functions

const JSON_PARAM_PREFIX char *TABLE_PARAM_ROW_S JSON_PARAM_VAL ("row")
 
const JSON_PARAM_PREFIX char *TABLE_PARAM_COLUMN_S JSON_PARAM_VAL ("column")
 
JSONParameterAllocateJSONParameterFromJSON (const json_t *param_json_p, const struct Service *service_p, const bool concise_flag, const ParameterType *pt_p)
 
ParameterEasyCreateAndAddJSONParameterToParameterSet (const struct ServiceData *service_data_p, ParameterSet *params_p, ParameterGroup *group_p, ParameterType type, const char *const name_s, const char *const display_name_s, const char *const description_s, const json_t *default_value_p, uint8 level)
 
ParameterCreateAndAddJSONParameterToParameterSet (const struct ServiceData *service_data_p, ParameterSet *params_p, ParameterGroup *group_p, ParameterType type, const char *const name_s, const char *const display_name_s, const char *const description_s, const json_t *default_value_p, const json_t *current_value_p, uint8 level)
 
void FreeJSONParameter (JSONParameter *param_p)
 
const json_t * GetJSONParameterCurrentValue (const JSONParameter *param_p)
 
bool SetJSONParameterCurrentValue (JSONParameter *param_p, const json_t *value_p)
 
const json_t * GetJSONParameterDefaultValue (const JSONParameter *param_p)
 
bool SetJSONParameterDefaultValue (JSONParameter *param_p, const json_t *value_p)
 
bool IsJSONParameter (Parameter *param_p)
 
bool GetCurrentJSONParameterValueFromParameterSet (const ParameterSet *const params_p, const char *const name_s, const json_t **value_pp)
 
bool SetJSONParameterCurrentValueFromJSON (JSONParameter *param_p, const json_t *value_p)
 

Function Documentation

◆ JSON_PARAM_VAL() [1/2]

const JSON_PARAM_PREFIX char* TABLE_PARAM_ROW_S JSON_PARAM_VAL ( "row"  )

◆ JSON_PARAM_VAL() [2/2]

const JSON_PARAM_PREFIX char* TABLE_PARAM_COLUMN_S JSON_PARAM_VAL ( "column"  )

◆ AllocateJSONParameterFromJSON()

JSONParameter* AllocateJSONParameterFromJSON ( const json_t *  param_json_p,
const struct Service service_p,
const bool  concise_flag,
const ParameterType pt_p 
)

◆ EasyCreateAndAddJSONParameterToParameterSet()

Parameter* EasyCreateAndAddJSONParameterToParameterSet ( const struct ServiceData service_data_p,
ParameterSet params_p,
ParameterGroup group_p,
ParameterType  type,
const char *const  name_s,
const char *const  display_name_s,
const char *const  description_s,
const json_t *  default_value_p,
uint8  level 
)

◆ CreateAndAddJSONParameterToParameterSet()

Parameter* CreateAndAddJSONParameterToParameterSet ( const struct ServiceData service_data_p,
ParameterSet params_p,
ParameterGroup group_p,
ParameterType  type,
const char *const  name_s,
const char *const  display_name_s,
const char *const  description_s,
const json_t *  default_value_p,
const json_t *  current_value_p,
uint8  level 
)

◆ FreeJSONParameter()

void FreeJSONParameter ( JSONParameter param_p)

◆ GetJSONParameterCurrentValue()

const json_t* GetJSONParameterCurrentValue ( const JSONParameter param_p)

◆ SetJSONParameterCurrentValue()

bool SetJSONParameterCurrentValue ( JSONParameter param_p,
const json_t *  value_p 
)

◆ GetJSONParameterDefaultValue()

const json_t* GetJSONParameterDefaultValue ( const JSONParameter param_p)

◆ SetJSONParameterDefaultValue()

bool SetJSONParameterDefaultValue ( JSONParameter param_p,
const json_t *  value_p 
)

◆ IsJSONParameter()

bool IsJSONParameter ( Parameter param_p)

◆ GetCurrentJSONParameterValueFromParameterSet()

bool GetCurrentJSONParameterValueFromParameterSet ( const ParameterSet *const  params_p,
const char *const  name_s,
const json_t **  value_pp 
)

◆ SetJSONParameterCurrentValueFromJSON()

bool SetJSONParameterCurrentValueFromJSON ( JSONParameter param_p,
const json_t *  value_p 
)