ParameterSettableCreator Class Reference

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

Inheritance diagram for ParameterSettableCreator:

List of all members.

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 ( ) [inline, virtual]

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, ConfigureInConstructor >, and ParameterSettableCreatorT< T, false >.

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, ConfigureInConstructor >, and ParameterSettableCreatorT< T, false >.


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