#include <objectfactory.h>
A object factory. A object facroty which creates any object derived from Object.
◆ create() [1/3]
template<class ContainerType >
| static std::shared_ptr<ContainerType> OpenMBV::ObjectFactory::create |
( |
const xercesc::DOMElement * |
element | ) |
|
|
inlinestatic |
Create an object corresponding to the XML element element and return a pointer of type ContainerType. Throws if the created object is not of type ContainerType. This function returns a new object dependent on the registration of the created object.
◆ create() [2/3]
template<class CreateType >
Create an empty object of type CreateType.
◆ create() [3/3]
template<class CreateType >
◆ registerXMLName()
template<class CreateType >
| static void OpenMBV::ObjectFactory::registerXMLName |
( |
const MBXMLUtils::FQN & |
name | ) |
|
|
inlinestatic |
Register the class CreateType which the XML element name name by the object factory. You should not use this function directly but see also the macro OPENMBV_OBJECTFACTORY_REGISTERXMLNAME.
The documentation for this class was generated from the following files:
- /mbsim-env/openmbv/openmbvcppinterface/openmbvcppinterface/objectfactory.h
- /mbsim-env/openmbv/openmbvcppinterface/openmbvcppinterface/objectfactory.cc