libSBML Perl API
libSBML 5.10.0 Perl API
|
Definition of QualExtension, the core module of qual package. More...
Classes | |
class | QualExtension |
{qual} The core module of the 'qual' package extension. More... | |
Macros | |
#define | QUAL_CREATE_NS(variable, sbmlns) EXTENSION_CREATE_NS(QualPkgNamespaces,variable,sbmlns); |
Typedefs | |
typedef SBMLExtensionNamespaces < QualExtension > | QualPkgNamespaces |
Enumerations | |
enum | SBMLQualTypeCode_t { SBML_QUAL_QUALITATIVE_SPECIES = 1100, SBML_QUAL_TRANSITION = 1101, SBML_QUAL_INPUT = 1102, SBML_QUAL_OUTPUT = 1103, SBML_QUAL_FUNCTION_TERM = 1104, SBML_QUAL_DEFAULT_TERM = 1105 } |
SBMLQualTypeCode_t is the enumeration of possible types from the 'qual' package. More... | |
Definition of QualExtension, the core module of qual package.
#define QUAL_CREATE_NS | ( | variable, | |
sbmlns | |||
) | EXTENSION_CREATE_NS(QualPkgNamespaces,variable,sbmlns); |
enum SBMLQualTypeCode_t |
SBMLQualTypeCode_t is the enumeration of possible types from the 'qual' 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_QUAL_QUALITATIVE_SPECIES | |
SBML_QUAL_TRANSITION | |
SBML_QUAL_INPUT | |
SBML_QUAL_OUTPUT | |
SBML_QUAL_FUNCTION_TERM | |
SBML_QUAL_DEFAULT_TERM |