OMK::ExtensionCreatorT< T > Class Template Reference
[Extension feature]

Extension creator class to be parametrized by the descendants of Extension. More...

#include <OMKExtension.h>

Inheritance diagram for OMK::ExtensionCreatorT< T >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef T object_to_create

Public Member Functions

virtual ~ExtensionCreatorT ()
Extensionoperator() (ExtensibleSimulatedObject *owner, const Name &id, bool registerExtension=true) const

Detailed Description

template<class T>
class OMK::ExtensionCreatorT< T >

Extension creator class to be parametrized by the descendants of Extension.

Date:
2007-02-14
Author:
Benoît Chanclou

Definition at line 264 of file OMKExtension.h.


Member Typedef Documentation

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

Definition at line 268 of file OMKExtension.h.


Constructor & Destructor Documentation

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

Definition at line 269 of file OMKExtension.h.

00270 {}


Member Function Documentation

template<class T>
Extension* OMK::ExtensionCreatorT< T >::operator() ( ExtensibleSimulatedObject owner,
const Name id,
bool  registerExtension = true 
) const [inline, virtual]

Reimplemented from OMK::ExtensionCreator.

Definition at line 270 of file OMKExtension.h.

00270                               {}
00271   Extension* operator()( ExtensibleSimulatedObject* owner, const Name& id, bool registerExtension = true ) const
00272         {
00273                 return new T( owner, id, registerExtension ) ;


logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007