ParameterSettableCreator Class Referenceabstract

The base class for object creators. The implementation is in the template class below. More...

Inheritance diagram for ParameterSettableCreator:

Public Member Functions

virtual ~ParameterSettableCreator ()
 Destructor.
 
virtual bool canDeferConfiguration () const =0
 Returns true if the object that is created can be configured after creation.
 
virtual ParameterSettablecreate (ConfigurationParameters &settings, QString prefix, bool configure) const =0
 Creates an instance and configures it.
 

Detailed Description

The base class for object creators. The implementation is in the template class below.

Definition at line 45 of file realfactory.h.

Constructor & Destructor Documentation

virtual ~ParameterSettableCreator ( )
inlinevirtual

Destructor.

Definition at line 51 of file realfactory.h.

Member Function Documentation

virtual bool canDeferConfiguration ( ) const
pure virtual

Returns true if the object that is created can be configured after creation.

Returns
true if the object that is created can be configured after creation

Implemented in ParameterSettableCreatorT< T, false >, and ParameterSettableCreatorT< T, ConfigureInConstructor >.

virtual ParameterSettable* create ( ConfigurationParameters settings,
QString  prefix,
bool  configure 
) const
pure virtual

Creates an instance and configures it.

The implementation is in the template class below

Parameters
settingsthe object with configuration settings for initializing the newly created object
prefixthe prefix for configuration parameters (i.e. the group containing parameters)
configureif true the object is created and configured, if false only the creation step is performed. This is only taken into account if the canDeferConfiguration() function below returns true, otherwise is ignored (and the object is created and configured)
Returns
the new object

Implemented in ParameterSettableCreatorT< T, false >, and ParameterSettableCreatorT< T, ConfigureInConstructor >.


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