![]() |
Isis 3 Programmer Reference
|
This class is used for processing an XML file containing information about a WorkOrder. More...
Public Member Functions | |
XmlHandler (ShapeDisplayProperties *displayProperties) | |
Constructor for the XmlHandler class. More... | |
virtual bool | startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts) |
This overrides the parent startElement function in XmlStackedHandler so the parser can handle an XML file containing ShapeDisplayProperties information. More... | |
virtual bool | characters (const QString &ch) |
This is called when the XML processor has parsed a chunk of character data. More... | |
virtual bool | endElement (const QString &namespaceURI, const QString &localName, const QString &qName) |
The XML reader invokes this method at the end of every element in the XML document. More... | |
virtual void | setReader (XmlStackedHandlerReader *) |
void | switchToNewHandler (XmlStackedHandler *nextHandler) |
Switch to a new content handler and continue processing using the new handler. More... | |
Protected Member Functions | |
XmlStackedHandlerReader * | reader () |
const XmlStackedHandlerReader * | reader () const |
bool | fatalError (const QXmlParseException &exception) |
Private Member Functions | |
Q_DISABLE_COPY (XmlHandler) | |
Private Attributes | |
ShapeDisplayProperties * | m_displayProperties |
QString | m_hexData |
XmlStackedHandlerReader * | m_reader |
int | m_depth |
QString | m_lastStartNamespaceURI |
QString | m_lastStartLocalName |
QString | m_lastStartQName |
QXmlAttributes | m_lastStartAtts |
This class is used for processing an XML file containing information about a WorkOrder.
Definition at line 115 of file ShapeDisplayProperties.h.
Isis::ShapeDisplayProperties::XmlHandler::XmlHandler | ( | ShapeDisplayProperties * | displayProperties | ) |
Constructor for the XmlHandler class.
This is a child class of XmlStackedHandler, which is used by XmlStackedHandlerReader to parse an XML file.
displayProperties | Pointer to a ShapeDisplayProperties object. |
Definition at line 197 of file ShapeDisplayProperties.cpp.
|
virtual |
This is called when the XML processor has parsed a chunk of character data.
This implementation of a virtual function calls QXmlDefaultHandler::characters(QString &ch) which in turn calls QXmlContentHandler::characters(QString &ch) which is called when the XML processor has parsed a chunk of character data.
ch | The character data. |
Definition at line 240 of file ShapeDisplayProperties.cpp.
|
virtual |
The XML reader invokes this method at the end of every element in the XML document.
namespaceURI | The Uniform Resource Identifier of the namespace (eg. "xmlns") |
localName | The local name string (eg. "xhtml") |
qName | The XML qualified string (eg. "xmlns:xhtml"). This can be empty if QNames are not available. |
Reimplemented from Isis::XmlStackedHandler.
Definition at line 259 of file ShapeDisplayProperties.cpp.
|
virtual |
This overrides the parent startElement function in XmlStackedHandler so the parser can handle an XML file containing ShapeDisplayProperties information.
namespaceURI | The Uniform Resource Identifier of the element's namespace |
localName | The local name string |
qName | The XML qualified string (or empty, if QNames are not available). |
atts | The XML attributes attached to each element |
Reimplemented from Isis::XmlStackedHandler.
Definition at line 212 of file ShapeDisplayProperties.cpp.
References Isis::DisplayProperties::displayName().
|
inherited |
Switch to a new content handler and continue processing using the new handler.
Definition at line 38 of file XmlStackedHandler.cpp.
Referenced by Isis::XmlStackedHandlerReader::pushContentHandler().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/13/2023 15:22:56 |