|
qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
|
A convenience holder for all factories. More...
#include <ccExternalFactory.h>
Public Types | |
| typedef QSharedPointer< Container > | Shared |
| Shared pointer type. | |
Public Member Functions | |
| Container () | |
| Default constructor. | |
| 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 () |
| Returns the unique static instance of the external factories container. | |
| static void | SetUniqueInstance (Container::Shared container) |
| Sets the unique static instance of the external factories container. More... | |
Protected Attributes | |
| QMap< QString, ccExternalFactory * > | m_factories |
| Set of factories. | |
A convenience holder for all factories.
| void ccExternalFactory::Container::addFactory | ( | ccExternalFactory * | factory | ) |
Adds a new factory to the container.
Any previously existing factory with the same name will be overwritten.
| ccExternalFactory * ccExternalFactory::Container::getFactoryByName | ( | const QString & | factoryName | ) | const |
Returns factory using its (unique) name as key.
| factoryName | unique name |
|
static |
Sets the unique 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.