Mantid
|
This class implements the Poco SAX ContentHandler class for reading component XML. More...
#include <ComponentParser.h>
Public Member Functions | |
void | characters (const Poco::XML::XMLChar[], int, int) override |
void | endDocument () override |
Not used. More... | |
void | endElement (const Poco::XML::XMLString &, const Poco::XML::XMLString &localName, const Poco::XML::XMLString &) override |
Signals end of element. More... | |
void | endPrefixMapping (const Poco::XML::XMLString &) override |
Not used. More... | |
Component * | getComponent () |
void | ignorableWhitespace (const Poco::XML::XMLChar[], int, int) override |
Not used. More... | |
void | processingInstruction (const Poco::XML::XMLString &, const Poco::XML::XMLString &) override |
Not used. More... | |
void | setDocumentLocator (const Poco::XML::Locator *) override |
Not used. More... | |
size_t | size () const |
void | skippedEntity (const Poco::XML::XMLString &) override |
Not used. More... | |
void | startDocument () override |
Signals start of XML document. More... | |
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. More... | |
void | startPrefixMapping (const Poco::XML::XMLString &, const Poco::XML::XMLString &) override |
Not used. More... | |
Private Attributes | |
std::vector< Component * > | m_current |
The components currently being built up. More... | |
std::string | m_innerText |
This class implements the Poco SAX ContentHandler class for reading component XML.
Definition at line 24 of file ComponentParser.h.
|
override |
Definition at line 21 of file ComponentParser.cpp.
References m_innerText.
|
inlineoverride |
Not used.
Definition at line 44 of file ComponentParser.h.
|
override |
Signals end of element.
Definition at line 58 of file ComponentParser.cpp.
References Mantid::Kernel::Quat::fromString(), Mantid::Kernel::V3D::fromString(), m_current, m_innerText, Mantid::Geometry::Component::setPos(), and Mantid::Geometry::Component::setRot().
|
inlineoverride |
Not used.
Definition at line 48 of file ComponentParser.h.
Component * Mantid::Geometry::ComponentParser::getComponent | ( | ) |
Definition at line 14 of file ComponentParser.cpp.
References m_current.
|
inlineoverride |
Not used.
Definition at line 45 of file ComponentParser.h.
|
inlineoverride |
Not used.
Definition at line 46 of file ComponentParser.h.
|
inlineoverride |
Not used.
Definition at line 43 of file ComponentParser.h.
|
inline |
Definition at line 37 of file ComponentParser.h.
|
inlineoverride |
Not used.
Definition at line 49 of file ComponentParser.h.
|
inlineoverride |
|
override |
Signals start of element.
Definition at line 27 of file ComponentParser.cpp.
References m_current, and Mantid::Geometry::Component::readXMLAttributes().
|
inlineoverride |
Not used.
Definition at line 47 of file ComponentParser.h.
|
private |
The components currently being built up.
The one at the back of the vector is the latest one.
Definition at line 54 of file ComponentParser.h.
Referenced by endElement(), getComponent(), and startElement().
|
private |
Definition at line 56 of file ComponentParser.h.
Referenced by characters(), and endElement().