qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
ccExternalFactory::Container Class Reference

A convenience holder for all factories. More...

#include <ccExternalFactory.h>

Public Types

typedef QSharedPointer< ContainerShared
 Shared pointer type.
 

Public Member Functions

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

Detailed Description

A convenience holder for all factories.

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)

◆ SetUniqueInstance()

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


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