ParameterSettableCreatorT< T, ConfigureInConstructor > Class Template Reference

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

Inheritance diagram for ParameterSettableCreatorT< T, ConfigureInConstructor >:

List of all members.

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.

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

Destructor.

Definition at line 99 of file realfactory.h.


Member Function Documentation

virtual bool canDeferConfiguration ( ) const [inline, virtual]

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: