|
libSBML C API
libSBML 5.10.0 C API
|
Definition of QualExtension, the core module of qual package. More...
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.
| enum SBMLQualTypeCode_t |
SBMLQualTypeCode_t is the enumeration of possible types from the 'qual' package.
SBML_”. The set of possible type codes for core elements is defined in the enumeration SBMLTypeCode_t, and in addition, libSBML plug-ins for SBML Level 3 packages define their own extra enumerations of type codes (e.g., SBMLLayoutTypeCode_t for the Level 3 Layout package). 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 | |