sofa::core::ObjectCreator< RealObject > Class Template Reference

Typed Creator class used to create instances of object type RealObject. More...

#include <ObjectFactory.h>

Inheritance diagram for sofa::core::ObjectCreator< RealObject >:

Inheritance graph
[legend]
Collaboration diagram for sofa::core::ObjectCreator< RealObject >:

Collaboration graph
[legend]

Public Member Functions

bool canCreate (objectmodel::BaseContext *context, objectmodel::BaseObjectDescription *arg)
 Pre-construction check.
objectmodel::BaseObject * createInstance (objectmodel::BaseContext *context, objectmodel::BaseObjectDescription *arg)
 Construction method called by the factory.
const std::type_info & type ()
 type_info structure associated with the type of intanciated objects.

Detailed Description

template<class RealObject>
class sofa::core::ObjectCreator< RealObject >

Typed Creator class used to create instances of object type RealObject.

Definition at line 178 of file ObjectFactory.h.


Member Function Documentation

template<class RealObject >
bool sofa::core::ObjectCreator< RealObject >::canCreate ( objectmodel::BaseContext *  context,
objectmodel::BaseObjectDescription *  arg 
) [inline, virtual]

Pre-construction check.

Returns:
true if the object can be created successfully.

Implements sofa::core::ObjectFactory::Creator.

Definition at line 181 of file ObjectFactory.h.

template<class RealObject >
objectmodel::BaseObject* sofa::core::ObjectCreator< RealObject >::createInstance ( objectmodel::BaseContext *  context,
objectmodel::BaseObjectDescription *  arg 
) [inline, virtual]

Construction method called by the factory.

Precondition:
canCreate(context, arg) == true.

Implements sofa::core::ObjectFactory::Creator.

Definition at line 186 of file ObjectFactory.h.

References sofa::component::topology::create().

template<class RealObject >
const std::type_info& sofa::core::ObjectCreator< RealObject >::type (  )  [inline, virtual]

type_info structure associated with the type of intanciated objects.

Implements sofa::core::ObjectFactory::Creator.

Definition at line 192 of file ObjectFactory.h.


The documentation for this class was generated from the following file:

Generated on Sun Nov 23 04:22:07 2008 for Sofa by  doxygen 1.5.7.1