libSBML Perl API
libSBML 5.10.0 Perl API
|
Definition of CompExtension, the core module of comp package. More...
Classes | |
class | CompExtension |
{comp} The core module of the “comp” package extension. More... | |
Macros | |
#define | COMP_CREATE_NS(variable, sbmlns) EXTENSION_CREATE_NS(CompPkgNamespaces,variable,sbmlns); |
Typedefs | |
typedef SBMLExtensionNamespaces < CompExtension > | CompPkgNamespaces |
Enumerations | |
enum | SBMLCompTypeCode_t { SBML_COMP_SUBMODEL = 250, SBML_COMP_MODELDEFINITION = 251, SBML_COMP_EXTERNALMODELDEFINITION = 252, SBML_COMP_SBASEREF = 253, SBML_COMP_DELETION = 254, SBML_COMP_REPLACEDELEMENT = 255, SBML_COMP_REPLACEDBY = 256, SBML_COMP_PORT = 257 } |
SBMLCompTypeCode_t is the enumeration of possible types from the 'comp' package. More... | |
Definition of CompExtension, the core module of comp package.
#define COMP_CREATE_NS | ( | variable, | |
sbmlns | |||
) | EXTENSION_CREATE_NS(CompPkgNamespaces,variable,sbmlns); |
enum SBMLCompTypeCode_t |
SBMLCompTypeCode_t is the enumeration of possible types from the 'comp' 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_COMP_SUBMODEL | |
SBML_COMP_MODELDEFINITION | |
SBML_COMP_EXTERNALMODELDEFINITION | |
SBML_COMP_SBASEREF | |
SBML_COMP_DELETION | |
SBML_COMP_REPLACEDELEMENT | |
SBML_COMP_REPLACEDBY | |
SBML_COMP_PORT |