libSBML C++ API
5.20.4
|
Implementation of FbcExtension, the core module of fbc package. More...
Functions | |
FbcVariableType_t | FbcVariableType_fromString (const char *code) |
Returns the FbcVariableType_t enumeration corresponding to the given string or FBC_VARIABLE_TYPE_INVALID if there is no such match. More... | |
int | FbcVariableType_isValid (FbcVariableType_t fvt) |
Predicate returning 1 (true) or 0 (false) depending on whether the given FbcVariableType_t is valid. More... | |
int | FbcVariableType_isValidString (const char *code) |
Predicate returning 1 (true) or 0 (false) depending on whether the given string is a valid FbcVariableType_t. More... | |
const char * | FbcVariableType_toString (FbcVariableType_t fvt) |
Returns the string version of the provided FbcVariableType_t enumeration. More... | |
Variables | |
static const packageErrorTableEntryV3 | defaultErrorTableV3 [] |
static SBMLExtensionRegister< FbcExtension > | fbcExtensionRegistry |
static const char * | SBML_FBC_TYPECODE_STRINGS [] |
static const char * | SBML_FBC_VARIABLE_TYPE_STRINGS [] |
Implementation of FbcExtension, the core module of fbc package.
FbcVariableType_t FbcVariableType_fromString | ( | const char * | code | ) |
Returns the FbcVariableType_t enumeration corresponding to the given string or FBC_VARIABLE_TYPE_INVALID if there is no such match.
code | the string to convert to a FbcVariableType_t. |
int FbcVariableType_isValid | ( | FbcVariableType_t | fvt | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given FbcVariableType_t is valid.
fvt | the FbcVariableType_t enumeration to query. |
1
(true) if the FbcVariableType_t is FBC_VARIABLE_TYPE_LINEAR, or FBC_VARIABLE_TYPE_QUADRATIC; 0
(false) otherwise (including FBC_VARIABLE_TYPE_INVALID). int FbcVariableType_isValidString | ( | const char * | code | ) |
Predicate returning 1
(true) or 0
(false) depending on whether the given string is a valid FbcVariableType_t.
code | the string to query. |
1
(true) if the string is "linear", "quadratic", or "invalid FbcVariableType value"; 0
(false) otherwise.1
(true), but "Linear" will return 0
(false). const char* FbcVariableType_toString | ( | FbcVariableType_t | fvt | ) |
Returns the string version of the provided FbcVariableType_t enumeration.
fvt | the FbcVariableType_t enumeration value to convert. |
NULL
if the value is FBC_VARIABLE_TYPE_INVALID or another invalid enumeration value.
|
static |
|
static |
|
static |
|
static |