ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccExternalFactory::Container Class Reference

A convenience holder for all factories. More...

#include <ecvExternalFactory.h>

Public Types

typedef QSharedPointer< ContainerShared
 Shared pointer type. More...
 

Public Member Functions

 Container ()
 Default constructor. More...
 
ccExternalFactorygetFactoryByName (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...
 

Detailed Description

A convenience holder for all factories.

Definition at line 25 of file ecvExternalFactory.h.

Member Typedef Documentation

◆ Shared

Shared pointer type.

Definition at line 43 of file ecvExternalFactory.h.

Constructor & Destructor Documentation

◆ Container()

ccExternalFactory::Container::Container ( )
inline

Default constructor.

Definition at line 28 of file ecvExternalFactory.h.

Member Function Documentation

◆ addFactory()

void ccExternalFactory::Container::addFactory ( ccExternalFactory factory)

Adds a new factory to the container.

Any previously existing factory with the same name will be overwritten.

◆ getFactoryByName()

ccExternalFactory* ccExternalFactory::Container::getFactoryByName ( const QString &  factoryName) const

Returns factory using its (unique) name as key.

Parameters
factoryNameunique name
Returns
corresponding factory (or null pointer if not found)

◆ GetUniqueInstance()

static Container::Shared ccExternalFactory::Container::GetUniqueInstance ( )
static

Returns the unqiue static instance of the external factories container

◆ SetUniqueInstance()

static void ccExternalFactory::Container::SetUniqueInstance ( Container::Shared  container)
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.

Member Data Documentation

◆ m_factories

QMap<QString, ccExternalFactory*> ccExternalFactory::Container::m_factories
protected

Set of factories.

Definition at line 57 of file ecvExternalFactory.h.


The documentation for this class was generated from the following file: