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

Go to the source code of this file.

Data Structures

struct  SignedIntParameter
 
struct  SignedIntParameterOption
 
struct  SignedIntParameterOptionNode
 

Functions

SignedIntParameterAllocateSignedIntParameterFromJSON (const json_t *param_json_p, const struct Service *service_p, const bool concise_flag)
 
void FreeSignedIntParameter (SignedIntParameter *param_p)
 
ParameterEasyCreateAndAddSignedIntParameterToParameterSet (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 int32 *default_value_p, uint8 level)
 
ParameterCreateAndAddSignedIntParameterToParameterSet (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 int32 *default_value_p, const int32 *current_value_p, uint8 level)
 
const int32 * GetSignedIntParameterCurrentValue (const SignedIntParameter *param_p)
 
bool SetSignedIntParameterCurrentValue (SignedIntParameter *param_p, const int32 *value_p)
 
const int32 * GetSignedIntParameterDefaultValue (const SignedIntParameter *param_p)
 
bool SetSignedIntParameterDefaultValue (SignedIntParameter *param_p, const int32 *value_p)
 
bool SetSignedIntParameterBounds (SignedIntParameter *param_p, const int32 min_value, const int32 max_value)
 
bool IsSignedIntParameterBounded (const SignedIntParameter *param_p)
 
void GetSignedIntParameterBounds (const SignedIntParameter *param_p, const int32 **min_pp, const int32 **max_pp)
 
bool IsSignedIntParameter (const Parameter *param_p)
 
bool GetCurrentSignedIntParameterValueFromParameterSet (const ParameterSet *const params_p, const char *const name_s, const int32 **value_pp)
 
bool CreateAndAddSignedIntParameterOption (SignedIntParameter *param_p, const int32 value, const char *description_s)
 
SignedIntParameterOptionAllocateSignedIntParameterOption (const int32 value, const char *description_s)
 
void FreeSignedIntParameterOption (SignedIntParameterOption *option_p)
 
SignedIntParameterOptionNodeAllocateSignedIntParameterOptionNode (SignedIntParameterOption *option_p)
 
void FreeStringParameterOptionNode (ListItem *item_p)
 
bool SetSignedIntParameterCurrentValueFromJSON (SignedIntParameter *param_p, const json_t *value_p)
 

Function Documentation

◆ AllocateSignedIntParameterFromJSON()

SignedIntParameter* AllocateSignedIntParameterFromJSON ( const json_t *  param_json_p,
const struct Service service_p,
const bool  concise_flag 
)

◆ FreeSignedIntParameter()

void FreeSignedIntParameter ( SignedIntParameter param_p)

◆ EasyCreateAndAddSignedIntParameterToParameterSet()

Parameter* EasyCreateAndAddSignedIntParameterToParameterSet ( 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 int32 *  default_value_p,
uint8  level 
)

◆ CreateAndAddSignedIntParameterToParameterSet()

Parameter* CreateAndAddSignedIntParameterToParameterSet ( 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 int32 *  default_value_p,
const int32 *  current_value_p,
uint8  level 
)

◆ GetSignedIntParameterCurrentValue()

const int32* GetSignedIntParameterCurrentValue ( const SignedIntParameter param_p)

◆ SetSignedIntParameterCurrentValue()

bool SetSignedIntParameterCurrentValue ( SignedIntParameter param_p,
const int32 *  value_p 
)

◆ GetSignedIntParameterDefaultValue()

const int32* GetSignedIntParameterDefaultValue ( const SignedIntParameter param_p)

◆ SetSignedIntParameterDefaultValue()

bool SetSignedIntParameterDefaultValue ( SignedIntParameter param_p,
const int32 *  value_p 
)

◆ SetSignedIntParameterBounds()

bool SetSignedIntParameterBounds ( SignedIntParameter param_p,
const int32  min_value,
const int32  max_value 
)

◆ IsSignedIntParameterBounded()

bool IsSignedIntParameterBounded ( const SignedIntParameter param_p)

◆ GetSignedIntParameterBounds()

void GetSignedIntParameterBounds ( const SignedIntParameter param_p,
const int32 **  min_pp,
const int32 **  max_pp 
)

◆ IsSignedIntParameter()

bool IsSignedIntParameter ( const Parameter param_p)

◆ GetCurrentSignedIntParameterValueFromParameterSet()

bool GetCurrentSignedIntParameterValueFromParameterSet ( const ParameterSet *const  params_p,
const char *const  name_s,
const int32 **  value_pp 
)

◆ CreateAndAddSignedIntParameterOption()

bool CreateAndAddSignedIntParameterOption ( SignedIntParameter param_p,
const int32  value,
const char *  description_s 
)

◆ AllocateSignedIntParameterOption()

SignedIntParameterOption* AllocateSignedIntParameterOption ( const int32  value,
const char *  description_s 
)

◆ FreeSignedIntParameterOption()

void FreeSignedIntParameterOption ( SignedIntParameterOption option_p)

◆ AllocateSignedIntParameterOptionNode()

SignedIntParameterOptionNode* AllocateSignedIntParameterOptionNode ( SignedIntParameterOption option_p)

◆ FreeStringParameterOptionNode()

void FreeStringParameterOptionNode ( ListItem item_p)

◆ SetSignedIntParameterCurrentValueFromJSON()

bool SetSignedIntParameterCurrentValueFromJSON ( SignedIntParameter param_p,
const json_t *  value_p 
)