eVaf
eVaf::Plugins::iPluginFactory Class Referenceabstract

Common plugin factory interface for eVaf modules. More...

#include <Plugins/ipluginfactory.h>

Public Member Functions

virtual QObjectcreate (const QString &name)=0
 Creates the requested iPlugin interface object. More...
 
 iPluginFactory ()
 Empty constructor. More...
 
virtual ~iPluginFactory ()
 Empty virtual destructor. More...
 

Detailed Description

Common plugin factory interface for eVaf modules.

#include <Plugins/iPluginFactory>

The iPluginFactory interface is implemented by modules that export more than one iPlugin interface.

Modules that implement only one iPlugin interface, use the iPlugin interface object directly.

Definition at line 41 of file ipluginfactory.h.

Constructor & Destructor Documentation

eVaf::Plugins::iPluginFactory::iPluginFactory ( )
inline

Empty constructor.

Definition at line 48 of file ipluginfactory.h.

virtual eVaf::Plugins::iPluginFactory::~iPluginFactory ( )
inlinevirtual

Empty virtual destructor.

Definition at line 51 of file ipluginfactory.h.

Member Function Documentation

virtual QObject* eVaf::Plugins::iPluginFactory::create ( const QString &  name)
pure virtual

Creates the requested iPlugin interface object.

Parameters
nameName of the interface
Returns
The requested iPlugin interface object or 0 if failed

This function creates the requested iPlugin interface object. Modules can implement more than one iPlugin interface objects and use names to identify them.

If the requested interface object cannot be created, this function returns 0.

The module implementing the iPluginFactory interface is responsible for destroying all the created iPlugin interface objects.


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