OMK::SimulatedObjectCreatorT< T > Class Template Reference

Simulated object creator class to be parametrised by the descendants of SimulatedObject. More...

#include <OMKSimulatedObject.h>

Inheritance diagram for OMK::SimulatedObjectCreatorT< T >:

Inheritance graph
[legend]
Collaboration diagram for OMK::SimulatedObjectCreatorT< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T object_to_create

Public Member Functions

virtual ~SimulatedObjectCreatorT ()
SimulatedObjectoperator() (Controller &ctrl, const ObjectDescriptor &objectDescription) const

Detailed Description

template<class T>
class OMK::SimulatedObjectCreatorT< T >

Simulated object creator class to be parametrised by the descendants of SimulatedObject.

Date:
2007-07-13
Author:
Benoît Chanclou
This class creates the new object and calls the postConstruction methods to finish the initialisation. Note: This class replaces the OMKSimpleSimulatedObjectCreator.

Definition at line 736 of file OMKSimulatedObject.h.


Member Typedef Documentation

template<class T>
typedef T OMK::SimulatedObjectCreatorT< T >::object_to_create

Definition at line 740 of file OMKSimulatedObject.h.


Constructor & Destructor Documentation

template<class T>
virtual OMK::SimulatedObjectCreatorT< T >::~SimulatedObjectCreatorT (  )  [inline, virtual]

Definition at line 741 of file OMKSimulatedObject.h.

00742 {}


Member Function Documentation

template<class T>
SimulatedObject* OMK::SimulatedObjectCreatorT< T >::operator() ( Controller ctrl,
const ObjectDescriptor objectDescription 
) const [inline, virtual]

Reimplemented from OMK::SimulatedObjectCreator.

Definition at line 742 of file OMKSimulatedObject.h.

00742                                     {}
00743   SimulatedObject* operator()( Controller & ctrl, const ObjectDescriptor & objectDescription ) const
00744   {
00745     SimulatedObject* object = new T( ctrl, objectDescription ) ;
00746     if( object ) object->postConstruction() ;
00747     return object ;


logo OpenMask

Documentation generated on Mon Jun 9 11:46:03 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007