Changeset 2019 for code/branches/objecthierarchy/src/core/Template.cc
- Timestamp:
- Oct 27, 2008, 4:08:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/core/Template.cc
r2013 r2019 38 38 CreateFactory(Template); 39 39 40 Template::Template( ) :xmlelement_("")40 Template::Template(BaseObject* creator) : BaseObject(creator), xmlelement_("") 41 41 { 42 42 RegisterObject(Template); … … 59 59 XMLPortParam(Template, "baseclass", setBaseclass, getBaseclass, xmlelement, mode); 60 60 61 this->setXMLElement(*dynamic_cast<TiXmlElement*>(xmlelement.FirstChildElement(false)->GetTiXmlPointer())); 61 Element* element = xmlelement.FirstChildElement(false); 62 if (element) 63 { 64 TiXmlElement* tixmlelement = dynamic_cast<TiXmlElement*>(element->GetTiXmlPointer()); 65 if (tixmlelement) 66 this->setXMLElement(*tixmlelement); 67 } 62 68 } 63 69
Note: See TracChangeset
for help on using the changeset viewer.