|
libSBML C++ API
libSBML 5.10.0 C++ API
|
Definition of LayoutExtension, the core module of layout package. More...
Classes | |
| class | LayoutExtension |
| {layout} The core module of the 'layout' package extension. More... | |
Macros | |
| #define | LAYOUT_CREATE_NS(variable, sbmlns) EXTENSION_CREATE_NS(LayoutPkgNamespaces,variable,sbmlns); |
Typedefs | |
| typedef SBMLExtensionNamespaces < LayoutExtension > | LayoutPkgNamespaces |
Enumerations | |
| enum | SBMLLayoutTypeCode_t { SBML_LAYOUT_BOUNDINGBOX = 100, SBML_LAYOUT_COMPARTMENTGLYPH = 101, SBML_LAYOUT_CUBICBEZIER = 102, SBML_LAYOUT_CURVE = 103, SBML_LAYOUT_DIMENSIONS = 104, SBML_LAYOUT_GRAPHICALOBJECT = 105, SBML_LAYOUT_LAYOUT = 106, SBML_LAYOUT_LINESEGMENT = 107, SBML_LAYOUT_POINT = 108, SBML_LAYOUT_REACTIONGLYPH = 109, SBML_LAYOUT_SPECIESGLYPH = 110, SBML_LAYOUT_SPECIESREFERENCEGLYPH = 111, SBML_LAYOUT_TEXTGLYPH = 112, SBML_LAYOUT_REFERENCEGLYPH = 113, SBML_LAYOUT_GENERALGLYPH = 114 } |
| SBMLLayoutTypeCode_t is the enumeration of possible types from the 'layout' package. More... | |
Definition of LayoutExtension, the core module of layout package.
| #define LAYOUT_CREATE_NS | ( | variable, | |
| sbmlns | |||
| ) | EXTENSION_CREATE_NS(LayoutPkgNamespaces,variable,sbmlns); |
| enum SBMLLayoutTypeCode_t |
SBMLLayoutTypeCode_t is the enumeration of possible types from the 'layout' 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:
....
}
}
...
}