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

#include <ccExternalFactory.h>

Classes

class  Container
 A convenience holder for all factories. More...
 

Public Member Functions

 ccExternalFactory (QString factoryName)
 Default constructor. More...
 
QString getFactoryName () const
 Returns the (unique) name of the factory.
 
virtual ccHObjectbuildObject (const QString &metaName)=0
 Custom object building method. More...
 

Protected Attributes

QString m_factoryName
 Name.
 

Detailed Description

Provides new objects with an external factory This is intended to be used into plugins. Each plugin may define a new factory by subclassing this class. Factories are then stored in a unique container and used to load custom types.

Constructor & Destructor Documentation

◆ ccExternalFactory()

ccExternalFactory::ccExternalFactory ( QString  factoryName)

Default constructor.

Parameters
factoryNameunique name

Member Function Documentation

◆ buildObject()

virtual ccHObject * ccExternalFactory::buildObject ( const QString &  metaName)
pure virtual

Custom object building method.

Similar to ccHObject::New but virtual so as to be reimplemented by the plugin.

Parameters
metaNamecustom object name
Returns
corresponding instance (or 0 if an error occurred)

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