OMK::SimulatedObjectCreator Class Reference

Ancestor of every simulated object creator class used by the PrototypeFactory. More...

#include <OMKSimulatedObject.h>

Inheritance diagram for OMK::SimulatedObjectCreator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Detailed Description

Ancestor of every simulated object creator class used by the PrototypeFactory.

Date:
2007-07-13
Author:
Benoît Chanclou
Define the functor parameters to create a new simulated object.

Definition at line 714 of file OMKSimulatedObject.h.


Constructor & Destructor Documentation

virtual OMK::SimulatedObjectCreator::~SimulatedObjectCreator (  )  [inline, virtual]

Definition at line 717 of file OMKSimulatedObject.h.

00717 :
  virtual ~SimulatedObjectCreator(){}


Member Function Documentation

virtual SimulatedObject* OMK::SimulatedObjectCreator::operator() ( Controller ctrl,
const ObjectDescriptor objectDescription 
) const [inline, virtual]

Reimplemented in OMK::SimulatedObjectCreatorT< T >.

Definition at line 718 of file OMKSimulatedObject.h.

00718                                    {}
00719   virtual SimulatedObject* operator()( Controller & ctrl, const ObjectDescriptor & objectDescription ) const 
00720   {
00721     OMERROR( "Creator is not registered for \"" << objectDescription.getName() << "\" class \"" << objectDescription.getClass() << "\"" ) ;
00722     throw Exception( "Creator is not registered" ) ;
00723     return 0 ;


logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007