OMKSimulatedObject.h File Reference

#include "OMKTracer.h"
#include "OMKSimpleTypeT.h"
#include "OMKFlowable.h"
#include "OMKNameToPointerMap.h"
#include "OMKPolatorNT.h"
#include "OBTPrototypeFactory.h"
#include <iostream>
#include <list>
#include "OMKObjectDescriptor.h"

Include dependency graph for OMKSimulatedObject.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  OMK

Classes

class  OMK::SimulatedObject
 This is the class defining what a object or entity is like in Mask. More...
class  OMK::SimulatedObjectCreator
 Ancestor of every simulated object creator class used by the PrototypeFactory. More...
class  OMK::SimulatedObjectCreatorT< T >
 Simulated object creator class to be parametrised by the descendants of SimulatedObject. More...

Defines

Macros to declare and implement the dynamic creation of simulated objects.
#define DECLARE_OBJECT_FACTORY(ObjectClass)
 This define declares factory utilities, constructor and destructor for a simulated object.
#define REGISTER_OBJECT_FACTORY(ObjectClass, Id)
 This define implements factory utilities, constructor and destructor for a simulated object.

Typedefs

typedef OBT::Singleton< OBT::PrototypeFactory<
OMK::Name, SimulatedObjectCreator > > 
OMK::SimulatedObjectFactory
 The factory of the simulated object.


Define Documentation

#define DECLARE_OBJECT_FACTORY ( ObjectClass   ) 

Value:

public: \ \
  friend class OMK::SimulatedObjectCreatorT< ObjectClass > ; \ \
  static OMK::Name OMK_CLASS_ID ;                                    \ \
  static const bool REGISTERED_IN_OBJECT_FACTORY ; \
protected: \ \
   ObjectClass( OMK::Controller& ctrl, const OMK::ObjectDescriptor& objectDescriptor ) ; \
public: \
  virtual ~ObjectClass()
This define declares factory utilities, constructor and destructor for a simulated object.

Date:
2007-07-16
Author:
Benoît Chanclou
Should be use with REGISTER_OBJECT_FACTORY. See Creation of simulated objects.

Definition at line 674 of file OMKSimulatedObject.h.

#define REGISTER_OBJECT_FACTORY ( ObjectClass,
Id   ) 

Value:

/* Factory */ \
  OMK::Name ObjectClass::OMK_CLASS_ID( Id ) ;                             \
  const bool ObjectClass::REGISTERED_IN_OBJECT_FACTORY( OMK::SimulatedObjectFactory::getInstance().registerCreator< OMK::SimulatedObjectCreatorT< ObjectClass > >( Id ) )
This define implements factory utilities, constructor and destructor for a simulated object.

Date:
2007-07-16
Author:
Benoît Chanclou
Should be use with DECLARE_OBJECT_FACTORY. See Creation of simulated objects.

Definition at line 695 of file OMKSimulatedObject.h.


logo OpenMask

Documentation generated on Mon Jun 9 11:45:59 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007