OMK::Iii::ConvertorFactoryT< TypeIn, TypeOut > Class Template Reference
[Interactive object]

The factory of the average object. More...

#include <OMKIConvertor.h>

List of all members.

Public Member Functions

const IConvertorCreator< TypeIn,
TypeOut > & 
create (const Name &classId) const
 returns the creator registered to classId if no creator has been registered TCreator is returned
template<class TDerivedCreator>
bool registerCreator (const Name &classId)
 register a creator to classId

Private Member Functions

 ConvertorFactoryT ()

Friends

class OBT::Singleton< ConvertorFactoryT< TypeIn, TypeOut > >


Detailed Description

template<typename TypeIn, typename TypeOut>
class OMK::Iii::ConvertorFactoryT< TypeIn, TypeOut >

The factory of the average object.

Date:
2007-03-27
Author:
Benoît Chanclou
Defines the factory for creating a new convertor object, this creator is a template class, the parameters are: Every convertor which wants to be dynamically created must be registered in this factory. As this factory is a template one, so there is a factory for each couple of in and out types.

Use the macros to do this registration, see REGISTER_TEMPLATE_CONVERTOR_FACTORY and REGISTER_CONVERTOR_FACTORY for details.

Definition at line 280 of file OMKIConvertor.h.


Constructor & Destructor Documentation

template<typename TypeIn, typename TypeOut>
OMK::Iii::ConvertorFactoryT< TypeIn, TypeOut >::ConvertorFactoryT (  )  [inline, private]

Definition at line 283 of file OMKIConvertor.h.

References OMK::Iii::ConvertorFactoryT< TypeIn, TypeOut >::create().

00283 {


Member Function Documentation

template<typename TypeIn, typename TypeOut>
const IConvertorCreator< TypeIn, TypeOut >& OMK::Iii::ConvertorFactoryT< TypeIn, TypeOut >::create ( const Name classId  )  const [inline]

returns the creator registered to classId if no creator has been registered TCreator is returned

Definition at line 289 of file OMKIConvertor.h.

Referenced by OMK::Iii::ConvertorFactoryT< TypeIn, TypeOut >::ConvertorFactoryT().

00292   {

template<typename TypeIn, typename TypeOut>
template<class TDerivedCreator>
bool OMK::Iii::ConvertorFactoryT< TypeIn, TypeOut >::registerCreator ( const Name classId  )  [inline]

register a creator to classId

Definition at line 294 of file OMKIConvertor.h.

00297   {


Friends And Related Function Documentation

template<typename TypeIn, typename TypeOut>
friend class OBT::Singleton< ConvertorFactoryT< TypeIn, TypeOut > > [friend]

Definition at line 282 of file OMKIConvertor.h.


logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007