ReadFramework
rdf::Module Class Referenceabstract

This is the base class for all modules. It provides all functions which are implemented by the modules. More...

#include <BaseModule.h>

Inheritance diagram for rdf::Module:

Public Member Functions

 Module ()
 Default constructor Initializes a new instance of the Module class. More...
 
virtual bool isEmpty () const =0
 Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed. More...
 
virtual QString name () const
 Returns the module's name. More...
 
virtual QString toString () const
 Converts the module's parameters and results to a string. More...
 
virtual bool compute ()=0
 Runs the algorithm implemented by the module. More...
 
virtual void setConfig (QSharedPointer< ModuleConfig > config)
 
QSharedPointer< ModuleConfigconfig () const
 

Protected Member Functions

virtual bool checkInput () const =0
 
QString debugName () const
 

Protected Attributes

QSharedPointer< ModuleConfigmConfig
 

Friends

DllCoreExport QDataStream & operator<< (QDataStream &s, const Module &m)
 
DllCoreExport QDebug operator<< (QDebug d, const Module &m)
 

Detailed Description

This is the base class for all modules. It provides all functions which are implemented by the modules.

Constructor & Destructor Documentation

rdf::Module::Module ( )

Default constructor Initializes a new instance of the Module class.

Member Function Documentation

virtual bool rdf::Module::checkInput ( ) const
protectedpure virtual
QSharedPointer< ModuleConfig > rdf::Module::config ( ) const

Here is the caller graph for this function:

QString rdf::Module::debugName ( ) const
protected

Here is the caller graph for this function:

virtual bool rdf::Module::isEmpty ( ) const
pure virtual
QString rdf::Module::name ( ) const
virtual

Returns the module's name.

Returns
The module's name.
void rdf::Module::setConfig ( QSharedPointer< ModuleConfig config)
virtual

Here is the caller graph for this function:

Friends And Related Function Documentation

DllCoreExport QDataStream& operator<< ( QDataStream &  s,
const Module m 
)
friend
DllCoreExport QDebug operator<< ( QDebug  d,
const Module m 
)
friend

Member Data Documentation

QSharedPointer<ModuleConfig> rdf::Module::mConfig
protected

the module config


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