28 const Poco::XML::XMLString & ,
const Poco::XML::Attributes &attr) {
38 std::string name = attr.getValue(
"",
"name");
41 if (localName ==
"Component")
59 const Poco::XML::XMLString & ) {
65 throw std::runtime_error(
"Failed to find last component");
68 if (localName ==
"pos") {
73 }
else if (localName ==
"rot") {
std::vector< Component * > m_current
The components currently being built up.
void startElement(const Poco::XML::XMLString &, const Poco::XML::XMLString &localName, const Poco::XML::XMLString &, const Poco::XML::Attributes &attr) override
Signals start of element.
void endElement(const Poco::XML::XMLString &, const Poco::XML::XMLString &localName, const Poco::XML::XMLString &) override
Signals end of element.
void characters(const Poco::XML::XMLChar[], int, int) override
Component * getComponent()
Component is a wrapper for a Component which can modify some of its parameters, e....
void setRot(const Kernel::Quat &) override
Set the orientation Kernel::Quaternion relative to parent (if present)
virtual void readXMLAttributes(const Poco::XML::Attributes &attr)
Reads the XML attributes from Poco XML parser.
void setPos(double, double, double) override
Set the IComponent position, x, y, z respective to parent (if present)
void fromString(const std::string &str)
Sets the Quat using a string.
void fromString(const std::string &str)
Sets the vector using a string.