ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccExternalFactory Class Referenceabstract

#include <ecvExternalFactory.h>

Inheritance diagram for ccExternalFactory:

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. More...
 
virtual ccHObjectbuildObject (const QString &metaName)=0
 Custom object building method. More...
 

Protected Attributes

QString m_factoryName
 Name. More...
 

Detailed Description

Provides new objects with an external factory This is intendend 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.

Definition at line 22 of file ecvExternalFactory.h.

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)

Implemented in G3PointFactory.

◆ getFactoryName()

QString ccExternalFactory::getFactoryName ( ) const
inline

Returns the (unique) name of the factory.

Definition at line 66 of file ecvExternalFactory.h.

Member Data Documentation

◆ m_factoryName

QString ccExternalFactory::m_factoryName
protected

Name.

Definition at line 77 of file ecvExternalFactory.h.


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