#include <Element.h>


Public Types | |
| typedef helper::Factory < std::string, Object, Element < Object > * > | Factory |
Public Member Functions | |
| Element (const std::string &name, const std::string &type, BaseElement *newParent=NULL) | |
| virtual | ~Element () |
| Object * | getTypedObject () |
| virtual void | setObject (Object *newObject) |
| virtual core::objectmodel::Base * | getObject () |
| Get the associated object. | |
| virtual bool | initNode () |
Private Attributes | |
| Object * | object |
Definition at line 46 of file Element.h.
| typedef helper::Factory< std::string, Object, Element<Object>* > sofa::simulation::tree::xml::Element< Object >::Factory |
| sofa::simulation::tree::xml::Element< Object >::Element | ( | const std::string & | name, | |
| const std::string & | type, | |||
| BaseElement< Object > * | newParent = NULL | |||
| ) | [inline] |
Definition at line 45 of file Element.inl.
| sofa::simulation::tree::xml::Element< Object >::~Element | ( | ) | [inline, virtual] |
Definition at line 51 of file Element.inl.
| core::objectmodel::Base * sofa::simulation::tree::xml::Element< Object >::getObject | ( | ) | [inline, virtual] |
Get the associated object.
Reimplemented from sofa::core::objectmodel::BaseObjectDescription.
Definition at line 69 of file Element.inl.
References sofa::simulation::tree::xml::Element< Object >::object.
Referenced by sofa::simulation::tree::xml::NodeElement::initNode().
| Object * sofa::simulation::tree::xml::Element< Object >::getTypedObject | ( | ) | [inline] |
Definition at line 56 of file Element.inl.
References sofa::simulation::tree::xml::Element< Object >::object.
Referenced by sofa::simulation::tree::xml::NodeElement::initNode().
| bool sofa::simulation::tree::xml::Element< Object >::initNode | ( | ) | [inline, virtual] |
Implements sofa::simulation::tree::xml::BaseElement.
Reimplemented in sofa::simulation::tree::xml::AttributeElement, sofa::simulation::tree::xml::DataElement, sofa::simulation::tree::xml::NodeElement, and sofa::simulation::tree::xml::ObjectElement.
Definition at line 75 of file Element.inl.
References sofa::helper::Factory< TKey, TObject, TArgument >::CreateObject(), sofa::simulation::tree::xml::BaseElement::getName(), sofa::simulation::tree::xml::BaseElement::getType(), and sofa::simulation::tree::xml::Element< Object >::setObject().
| void sofa::simulation::tree::xml::Element< Object >::setObject | ( | Object * | newObject | ) | [inline, virtual] |
Definition at line 62 of file Element.inl.
Referenced by sofa::simulation::tree::xml::ObjectElement::initNode(), and sofa::simulation::tree::xml::Element< Object >::initNode().
Object* sofa::simulation::tree::xml::Element< Object >::object [private] |
Definition at line 49 of file Element.h.
Referenced by sofa::simulation::tree::xml::Element< Object >::getObject(), and sofa::simulation::tree::xml::Element< Object >::getTypedObject().
1.5.7.1