libSBML C++ API
libSBML 5.8.0 C++ API
|
Implementation of ConversionOption, the class encapsulating conversion options.
Functions | |
ConversionOption_t * | ConversionOption_clone (const ConversionOption_t *co) |
Creates and returns a deep copy of the ConversionOption object. More... | |
ConversionOption_t * | ConversionOption_create (const char *key) |
Creates a new ConversionOption_t with the given key. More... | |
ConversionOption_t * | ConversionOption_createWithKeyAndType (const char *key, ConversionOptionType_t type) |
Creates a new ConversionOption_t with given key and type. More... | |
int | ConversionOption_getBoolValue (const ConversionOption_t *co) |
Returns the value (as boolean) for the given option. More... | |
const char * | ConversionOption_getDescription (const ConversionOption_t *co) |
Returns the description for the given option. More... | |
double | ConversionOption_getDoubleValue (const ConversionOption_t *co) |
Returns the value (as double) for the given option. More... | |
float | ConversionOption_getFloatValue (const ConversionOption_t *co) |
Returns the value (as float) for the given option. More... | |
int | ConversionOption_getIntValue (const ConversionOption_t *co) |
Returns the value (as integer) for the given option. More... | |
const char * | ConversionOption_getKey (const ConversionOption_t *co) |
Returns the key for the given option. More... | |
ConversionOptionType_t | ConversionOption_getType (const ConversionOption_t *co) |
Returns the type for the given option. More... | |
const char * | ConversionOption_getValue (const ConversionOption_t *co) |
Returns the value for the given option. More... | |
void | ConversionOption_setBoolValue (ConversionOption_t *co, int value) |
Sets the value for the option. More... | |
void | ConversionOption_setDescription (ConversionOption_t *co, const char *description) |
Sets the description for the option. More... | |
void | ConversionOption_setDoubleValue (ConversionOption_t *co, double value) |
Sets the value for the option. More... | |
void | ConversionOption_setFloatValue (ConversionOption_t *co, float value) |
Sets the value for the option. More... | |
void | ConversionOption_setIntValue (ConversionOption_t *co, int value) |
Sets the value for the option. More... | |
void | ConversionOption_setKey (ConversionOption_t *co, const char *key) |
Sets the key for the option. More... | |
void | ConversionOption_setType (ConversionOption_t *co, ConversionOptionType_t type) |
Sets the type for the option. More... | |
void | ConversionOption_setValue (ConversionOption_t *co, const char *value) |
Sets the value for the option. More... | |
ConversionOption_t* ConversionOption_clone | ( | const ConversionOption_t * | co | ) |
Creates and returns a deep copy of the ConversionOption object.
co | the conversion option to clone |
ConversionOption_t* ConversionOption_create | ( | const char * | key | ) |
Creates a new ConversionOption_t with the given key.
key | the key for this option |
ConversionOption_t* ConversionOption_createWithKeyAndType | ( | const char * | key, |
ConversionOptionType_t | type | ||
) |
Creates a new ConversionOption_t with given key and type.
key | the key for this option |
type | the type of this option |
int ConversionOption_getBoolValue | ( | const ConversionOption_t * | co | ) |
Returns the value (as boolean) for the given option.
co | the conversion option |
const char* ConversionOption_getDescription | ( | const ConversionOption_t * | co | ) |
Returns the description for the given option.
co | the conversion option |
double ConversionOption_getDoubleValue | ( | const ConversionOption_t * | co | ) |
Returns the value (as double) for the given option.
co | the conversion option |
float ConversionOption_getFloatValue | ( | const ConversionOption_t * | co | ) |
Returns the value (as float) for the given option.
co | the conversion option |
int ConversionOption_getIntValue | ( | const ConversionOption_t * | co | ) |
Returns the value (as integer) for the given option.
co | the conversion option |
const char* ConversionOption_getKey | ( | const ConversionOption_t * | co | ) |
Returns the key for the given option.
co | the conversion option |
ConversionOptionType_t ConversionOption_getType | ( | const ConversionOption_t * | co | ) |
Returns the type for the given option.
co | the conversion option |
const char* ConversionOption_getValue | ( | const ConversionOption_t * | co | ) |
Returns the value for the given option.
co | the conversion option |
void ConversionOption_setBoolValue | ( | ConversionOption_t * | co, |
int | value | ||
) |
Sets the value for the option.
co | the conversion option |
value | a bool representing the value to set. |
void ConversionOption_setDescription | ( | ConversionOption_t * | co, |
const char * | description | ||
) |
Sets the description for the option.
co | the conversion option |
description | a string representing the description to set. |
void ConversionOption_setDoubleValue | ( | ConversionOption_t * | co, |
double | value | ||
) |
Sets the value for the option.
co | the conversion option |
value | a double representing the value to set. |
void ConversionOption_setFloatValue | ( | ConversionOption_t * | co, |
float | value | ||
) |
Sets the value for the option.
co | the conversion option |
value | a float representing the value to set. |
void ConversionOption_setIntValue | ( | ConversionOption_t * | co, |
int | value | ||
) |
Sets the value for the option.
co | the conversion option |
value | an integer representing the value to set. |
void ConversionOption_setKey | ( | ConversionOption_t * | co, |
const char * | key | ||
) |
Sets the key for the option.
co | the conversion option |
key | a string representing the key to set. |
void ConversionOption_setType | ( | ConversionOption_t * | co, |
ConversionOptionType_t | type | ||
) |
Sets the type for the option.
co | the conversion option |
type | the type for this option. |
void ConversionOption_setValue | ( | ConversionOption_t * | co, |
const char * | value | ||
) |
Sets the value for the option.
co | the conversion option |
value | a string representing the value to set. |