Public Member Functions | |
| int | addExtension (const SBMLExtension *ext) |
| Add the given SBMLExtension to this SBMLExtensionRegistry. | |
| SBMLExtension * | getExtension (const std::string &package) |
| Returns an SBMLExtension object with the given package URI or package name (string). | |
| unsigned int | getNumExtension (const SBaseExtensionPoint &extPoint) |
| Returns the number of SBMLExtension* with the given extension point. | |
| bool | isEnabled (const std::string &uri) |
| Checks if the extension with the given URI is enabled (true) or disabled (false) | |
| bool | isRegistered (const std::string &uri) |
| Checks if the extension with the given URI is registered (true) or not (false) | |
| bool | setEnabled (const std::string &uri, bool isEnabled) |
| Enable/disable the package with the given uri. | |
Static Public Member Functions | |
| static SBMLExtensionRegistry & | getInstance () |
| Returns an instance (singleton) of the SBMLExtensionRegistry class. | |
| static unsigned int | getNumRegisteredPackages () |
| Returns the number of registered packages. | |
| static std::string | getRegisteredPackageName (unsigned int index) |
| Returns the registered package name at the given index. | |
| static List * | getRegisteredPackageNames () |
| Returns a list of registered packages (such as 'layout', 'fbc' or 'comp') the list contains char* strings and has to be freed by the caller. | |
| int SBMLExtensionRegistry::addExtension | ( | const SBMLExtension * | ext | ) |
Add the given SBMLExtension to this SBMLExtensionRegistry.
| ext | the SBMLExtension object to be added. |
| SBMLExtension * SBMLExtensionRegistry::getExtension | ( | const std::string & | package | ) |
Returns an SBMLExtension object with the given package URI or package name (string).
| package | the URI or name of the package extension |
| SBMLExtensionRegistry & SBMLExtensionRegistry::getInstance | ( | ) | [static] |
Returns an instance (singleton) of the SBMLExtensionRegistry class.
This function needs to be invoked when manipulating the SBMLExtensionRegistry class.
| unsigned int SBMLExtensionRegistry::getNumExtension | ( | const SBaseExtensionPoint & | extPoint | ) |
Returns the number of SBMLExtension* with the given extension point.
| extPoint | the SBaseExtensionPoint |
| unsigned int SBMLExtensionRegistry::getNumRegisteredPackages | ( | ) | [static] |
Returns the number of registered packages.
| std::string SBMLExtensionRegistry::getRegisteredPackageName | ( | unsigned int | index | ) | [static] |
Returns the registered package name at the given index.
| index | zero based index of the package name to return |
| List * SBMLExtensionRegistry::getRegisteredPackageNames | ( | ) | [static] |
Returns a list of registered packages (such as 'layout', 'fbc' or 'comp') the list contains char* strings and has to be freed by the caller.
| bool SBMLExtensionRegistry::isEnabled | ( | const std::string & | uri | ) |
Checks if the extension with the given URI is enabled (true) or disabled (false)
| uri | the URI of the target package. |
| bool SBMLExtensionRegistry::isRegistered | ( | const std::string & | uri | ) |
Checks if the extension with the given URI is registered (true) or not (false)
| uri | the URI of the target package. |
| bool SBMLExtensionRegistry::setEnabled | ( | const std::string & | uri, |
| bool | isEnabled | ||
| ) |
Enable/disable the package with the given uri.
| uri | the URI of the target package. |
| isEnabled | the bool value corresponding to enabled (true) or disabled (false) |