ParameterSettableCreatorT< T, ConfigureInConstructor > Class Template Reference

The class implementing the create function of the class above. More...

Inheritance diagram for ParameterSettableCreatorT< T, ConfigureInConstructor >:

Public Member Functions

virtual ~ParameterSettableCreatorT ()
 Destructor.
 
virtual bool canDeferConfiguration () const
 Returns true if the object that is created can be configured after creation.
 
virtual
ParameterSettableInConstructor
create (ConfigurationParameters &settings, QString prefix, bool configure) const
 Creates an instance and configures it.
 
- Public Member Functions inherited from ParameterSettableCreator
virtual ~ParameterSettableCreator ()
 Destructor.
 

Detailed Description

template<class T, bool ConfigureInConstructor>
class farsa::ParameterSettableCreatorT< T, ConfigureInConstructor >

The class implementing the create function of the class above.

Use this for classes requesting configuration in the constructor

Note
All methods are reentrant

Definition at line 93 of file realfactory.h.

Constructor & Destructor Documentation

virtual ~ParameterSettableCreatorT ( )
inlinevirtual

Destructor.

Definition at line 99 of file realfactory.h.

Member Function Documentation

virtual bool canDeferConfiguration ( ) const
inlinevirtual

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

Returns
always false

Implements ParameterSettableCreator.

Definition at line 123 of file realfactory.h.

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

Creates an instance and configures it.

Parameters
settingsthe object with configuration settings for initializing the newly created object
prefixthe prefix for configuration parameters (i.e. the group containing parameters). When calling configure for the new object, prefix is appended with the separator
configureignored (the object is always created and configured)
Returns
the new object

Implements ParameterSettableCreator.

Definition at line 412 of file realfactory.h.

References ConfigurationParameters::GroupSeparator().


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