libSBML C++ API
5.20.2
|
This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.
Public Member Functions | |
virtual void | addL2Namespaces (XMLNamespaces *xmlns) const |
adds all L2 Extension namespaces to the namespace list. More... | |
virtual RenderExtension * | clone () const |
Creates and returns a deep copy of this RenderExtension object. More... | |
virtual void | enableL2NamespaceForDocument (SBMLDocument *doc) const |
Adds the L2 Namespace to the document and enables the extension. More... | |
virtual unsigned int | getLevel (const std::string &uri) const |
Returns the SBML level with the given URI of this package. More... | |
virtual const std::string & | getName () const |
Returns the name of this package ("render") More... | |
int | getNumOfSBasePlugins () const |
Returns the number of SBasePluginCreatorBase objects stored in this object. More... | |
unsigned int | getNumOfSupportedPackageURI () const |
Returns the number of supported package namespace URIs. More... | |
virtual unsigned int | getPackageVersion (const std::string &uri) const |
Returns the package version with the given URI of this package. More... | |
virtual SBMLNamespaces * | getSBMLExtensionNamespaces (const std::string &uri) const |
Returns a RenderPkgNamespaces object. More... | |
virtual const char * | getStringFromTypeCode (int typeCode) const |
This method takes a type code of groups package and returns a string representing the code. More... | |
const std::string & | getSupportedPackageURI (unsigned int n) const |
Returns the nth XML namespace URI. More... | |
virtual const std::string & | getURI (unsigned int sbmlLevel, unsigned int sbmlVersion, unsigned int pkgVersion) const |
Returns the URI (namespace) of the package corresponding to the combination of the given sbml level, sbml version, and package version. More... | |
virtual unsigned int | getVersion (const std::string &uri) const |
Returns the SBML version with the given URI of this package. More... | |
bool | isEnabled () const |
Returns true if this package is enabled. More... | |
virtual bool | isInUse (SBMLDocument *doc) const |
Determines whether this extension is being used by the given SBMLDocument. More... | |
bool | isSupported (const std::string &uri) const |
Returns true if the given XML namespace URI is supported by this package extension. More... | |
RenderExtension & | operator= (const RenderExtension &) |
Assignment operator for GroupsExtension. More... | |
virtual void | removeL2Namespaces (XMLNamespaces *xmlns) const |
Removes the L2 Namespace from a document. More... | |
RenderExtension () | |
Constructor. More... | |
RenderExtension (const RenderExtension &) | |
Copy constructor. More... | |
bool | setEnabled (bool isEnabled) |
Enable or disable this package. More... | |
virtual | ~RenderExtension () |
Destroy this object. More... | |
Static Public Member Functions | |
static unsigned int | getDefaultLevel () |
Returns the default SBML Level this extension. More... | |
static unsigned int | getDefaultPackageVersion () |
Returns the default SBML version this extension. More... | |
static unsigned int | getDefaultVersion () |
Returns the default SBML Version this extension. More... | |
static const std::string & | getPackageName () |
Returns the package name of this extension. More... | |
static const std::string & | getXmlnsL2 () |
Returns URI of L2 version of supported versions of this package. More... | |
static const std::string & | getXmlnsL3V1V1 () |
Returns URI of supported versions of this package. More... | |
RenderExtension::RenderExtension | ( | ) |
Constructor.
RenderExtension::RenderExtension | ( | const RenderExtension & | orig | ) |
Copy constructor.
|
virtual |
Destroy this object.
|
virtual |
adds all L2 Extension namespaces to the namespace list.
This method is overridden here since Render does serialize to an L2 annotation.
Reimplemented from SBMLExtension.
|
virtual |
Creates and returns a deep copy of this RenderExtension object.
Implements SBMLExtension.
|
virtual |
Adds the L2 Namespace to the document and enables the extension.
This method is overridden here since Render does serialize to an L2 annotation.
Reimplemented from SBMLExtension.
|
static |
Returns the default SBML Level this extension.
|
static |
Returns the default SBML version this extension.
|
static |
Returns the default SBML Version this extension.
|
virtual |
Returns the SBML level with the given URI of this package.
uri | the string of URI that represents one of the versions of the render package |
Implements SBMLExtension.
|
virtual |
Returns the name of this package ("render")
Implements SBMLExtension.
|
inherited |
Returns the number of SBasePluginCreatorBase objects stored in this object.
|
inherited |
Returns the number of supported package namespace URIs.
|
static |
Returns the package name of this extension.
|
virtual |
Returns the package version with the given URI of this package.
uri | the string of URI that represents one of the versions of the render package |
Implements SBMLExtension.
|
virtual |
Returns a RenderPkgNamespaces object.
NULL
will be returned if the given uri is not defined in the render package.
uri | the string of URI that represents one of the versions of the render package |
NULL
will be returned if the given URI is not defined in render package. Implements SBMLExtension.
|
virtual |
This method takes a type code of groups package and returns a string representing the code.
Implements SBMLExtension.
|
inherited |
Returns the nth XML namespace URI.
n | the index number of the namespace URI being sought. |
|
virtual |
Returns the URI (namespace) of the package corresponding to the combination of the given sbml level, sbml version, and package version.
Empty string will be returned if no corresponding URI exists.
sbmlLevel | the level of SBML |
sbmlVersion | the version of SBML |
pkgVersion | the version of package |
Implements SBMLExtension.
|
virtual |
Returns the SBML version with the given URI of this package.
uri | the string of URI that represents one of the versions of the render package |
Implements SBMLExtension.
|
static |
Returns URI of L2 version of supported versions of this package.
|
static |
Returns URI of supported versions of this package.
|
inherited |
Returns true
if this package is enabled.
true
if this package is enabled, false
otherwise.
|
virtual |
Determines whether this extension is being used by the given SBMLDocument.
The implementation returns true
if the list of layouts contains a global render information, or a layout object contains a local render information object.
doc | the sbml document to test. |
Reimplemented from SBMLExtension.
|
inherited |
Returns true
if the given XML namespace URI is supported by this package extension.
true
if the given XML namespace URI (equivalent to a package version) is supported by this package extension, false
otherwise. RenderExtension & RenderExtension::operator= | ( | const RenderExtension & | orig | ) |
Assignment operator for GroupsExtension.
|
virtual |
Removes the L2 Namespace from a document.
This method is overridden here since Render does serialize to an L2 annotation.
Reimplemented from SBMLExtension.
|
inherited |
Enable or disable this package.
isEnabled | flag indicating whether to enable (if true ) or disable (false ) this package extension. |
true
if this call succeeded; false
otherwise.