| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
tlp::TemplateFactory< ObjectFactory, ObjectType, Context > Class Template Reference This template class takes 3 parameters : More...
Inheritance diagram for tlp::TemplateFactory< ObjectFactory, ObjectType, Context >:
![]()
Collaboration diagram for tlp::TemplateFactory< ObjectFactory, ObjectType, Context >:
![]() Public Types
Public Member Functions
Public Attributes
Detailed Descriptiontemplate<class ObjectFactory, class ObjectType, class Context>
|
| typedef std::map< std::string , ObjectFactory * > tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::ObjectCreator |
| tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::TemplateFactory | ( | ) | [inline] |
| Iterator<std::string>* tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::availablePlugins | ( | ) | [virtual] |
Gets the list of plug-ins that registered themselves in this factory.
Implements tlp::TemplateFactoryInterface.
| std::list<tlp::Dependency> tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::getPluginDependencies | ( | std::string | name | ) | [virtual] |
Gets the dependencies of a plug-in.
| name | The name of the plug-in to retrieve the dependencies of. |
Implements tlp::TemplateFactoryInterface.
| ObjectType* tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::getPluginObject | ( | const std::string & | name, |
| Context | p | ||
| ) |
Constructs a plug-in.
| name | The name of the plug-in to instantiate. |
| p | The context to give to the plug-in. |
| StructDef tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::getPluginParameters | ( | std::string | name | ) | [virtual] |
Gets the list of parameters for the given plug-in.
| name | The name of the plug-in to retrieve the parameters of. |
Implements tlp::TemplateFactoryInterface.
| std::string tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::getPluginRelease | ( | std::string | name | ) | [virtual] |
Gets the release number of the given plug-in.
| name | The name of the plug-in to retrieve the version number of. |
Implements tlp::TemplateFactoryInterface.
| std::string tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::getPluginsClassName | ( | ) | [virtual] |
Gets the class name for the plug-in's registered class. If the class is in the tlp namespace, the 'tlp::' prefix is removed.
Implements tlp::TemplateFactoryInterface.
| bool tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::pluginExists | ( | const std::string & | pluginName | ) | [virtual] |
Checks if a given name is registered in this factory.
| pluginName | The name of the plug-in to look for. |
Implements tlp::TemplateFactoryInterface.
| void tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::registerPlugin | ( | ObjectFactory * | objectFactory | ) |
| void tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::removePlugin | ( | const std::string & | name | ) | [virtual] |
Removes a plug-in from this factory. This is usefull when a plug-in has unmet dependencies, or appears more than once.
| name | The name of the plug-in to remove. |
Implements tlp::TemplateFactoryInterface.
| std::map<std::string, std::list<tlp::Dependency> > tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::objDeps |
Stores the dependencies of the registered plug-ins.
| ObjectCreator tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::objMap |
Stores the factories that register into this TemplateFactory.
| std::set<std::string> tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::objNames |
Stores the list of registered plug-ins.
| std::map<std::string,StructDef> tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::objParam |
Stores the parameters of each registered plug-in.
| std::map<std::string, std::string> tlp::TemplateFactory< ObjectFactory, ObjectType, Context >::objRels |
Stores the release version of the registered plug-ins.
| Tulip Software by LaBRI Visualization Team 2001 - 2011 |