![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
A convenience holder for all factories. More...
#include <ecvExternalFactory.h>
Public Types | |
| typedef QSharedPointer< Container > | Shared |
| Shared pointer type. More... | |
Public Member Functions | |
| Container () | |
| Default constructor. More... | |
| ccExternalFactory * | getFactoryByName (const QString &factoryName) const |
| Returns factory using its (unique) name as key. More... | |
| void | addFactory (ccExternalFactory *factory) |
| Adds a new factory to the container. More... | |
Static Public Member Functions | |
| static Container::Shared | GetUniqueInstance () |
| static void | SetUniqueInstance (Container::Shared container) |
| Sets the unqiue static instance of the external factories container. More... | |
Protected Attributes | |
| QMap< QString, ccExternalFactory * > | m_factories |
| Set of factories. More... | |
A convenience holder for all factories.
Definition at line 25 of file ecvExternalFactory.h.
| typedef QSharedPointer<Container> ccExternalFactory::Container::Shared |
Shared pointer type.
Definition at line 43 of file ecvExternalFactory.h.
|
inline |
Default constructor.
Definition at line 28 of file ecvExternalFactory.h.
| void ccExternalFactory::Container::addFactory | ( | ccExternalFactory * | factory | ) |
Adds a new factory to the container.
Any previously existing factory with the same name will be overwritten.
Definition at line 25 of file ecvExternalFactory.cpp.
References ccExternalFactory::getFactoryName(), and name.
| ccExternalFactory * ccExternalFactory::Container::getFactoryByName | ( | const QString & | factoryName | ) | const |
Returns factory using its (unique) name as key.
| factoryName | unique name |
Definition at line 17 of file ecvExternalFactory.cpp.
References m_factories.
|
static |
Returns the unqiue static instance of the external factories container
Definition at line 35 of file ecvExternalFactory.cpp.
References s_externalFactoryContainer().
Referenced by ccPluginManager::loadPlugins(), and ccHObject::New().
|
static |
Sets the unqiue static instance of the external factories container.
A default static instance is provided for convenience but another user defined instance can be declared here instead.
Definition at line 43 of file ecvExternalFactory.cpp.
References s_externalFactoryContainer().
|
protected |
Set of factories.
Definition at line 57 of file ecvExternalFactory.h.
Referenced by getFactoryByName().