libSBML Perl API
libSBML 5.10.0 Perl API
|
Definition of FbcExtension, the core module of fbc package. More...
Classes | |
class | FbcExtension |
{fbc} The core module of the 'fbc' package extension. More... | |
Macros | |
#define | FBC_CREATE_NS(variable, sbmlns) EXTENSION_CREATE_NS(FbcPkgNamespaces,variable,sbmlns); |
Typedefs | |
typedef SBMLExtensionNamespaces < FbcExtension > | FbcPkgNamespaces |
Enumerations | |
enum | SBMLFbcTypeCode_t { SBML_FBC_ASSOCIATION = 800, SBML_FBC_FLUXBOUND = 801, SBML_FBC_FLUXOBJECTIVE = 802, SBML_FBC_GENEASSOCIATION = 803, SBML_FBC_OBJECTIVE = 804 } |
SBMLFbcTypeCode_t is the enumeration of possible types from the 'fbc' package. More... | |
Definition of FbcExtension, the core module of fbc package.
#define FBC_CREATE_NS | ( | variable, | |
sbmlns | |||
) | EXTENSION_CREATE_NS(FbcPkgNamespaces,variable,sbmlns); |
enum SBMLFbcTypeCode_t |
SBMLFbcTypeCode_t is the enumeration of possible types from the 'fbc' package.
SBML_
”. Note that different Level 3 package plug-ins may use overlapping type codes; to identify the package to which a given object belongs, call the getPackageName()
method on the object.NULL
if the value you give it is actually from a package.The following example code illustrates the combined use of SBase::getPackageName() and SBase::getTypeCode():
void example (const SBase *sb) { cons std::string pkgName = sb->getPackageName(); if (pkgName == "core") { switch (sb->getTypeCode()) { case SBML_MODEL: .... break; case SBML_REACTION: .... } } else if (pkgName == "layout") { switch (sb->getTypeCode()) { case SBML_LAYOUT_LAYOUT: .... break; case SBML_LAYOUT_REACTIONGLYPH: .... } } ... }
Enumerator | |
---|---|
SBML_FBC_ASSOCIATION | |
SBML_FBC_FLUXBOUND | |
SBML_FBC_FLUXOBJECTIVE | |
SBML_FBC_GENEASSOCIATION | |
SBML_FBC_OBJECTIVE |