Isis 3 Programmer Reference
|
This class is needed to read/write BundleSettings from/to an XML formateed file. More...
Public Member Functions | |
XmlHandler (BundleSettings *bundleSettings, Project *project) | |
Create an XML Handler (reader) that can populate the BundleSettings class data. | |
XmlHandler (BundleSettings *bundleSettings) | |
~XmlHandler () | |
Destroys BundleSettings::XmlHandler object. | |
virtual bool | startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts) |
Handle an XML start element. | |
virtual bool | characters (const QString &ch) |
Add a character from an XML element to the content handler. | |
virtual bool | endElement (const QString &namespaceURI, const QString &localName, const QString &qName) |
Handle end tags for the BundleSettings serialized XML. | |
bool | fatalError (const QXmlParseException &exception) |
Format an error message indicating a problem with BundleSettings. | |
virtual void | setReader (XmlStackedHandlerReader *) |
void | switchToNewHandler (XmlStackedHandler *nextHandler) |
Switch to a new content handler and continue processing using the new handler. | |
Protected Member Functions | |
XmlStackedHandlerReader * | reader () |
const XmlStackedHandlerReader * | reader () const |
Private Member Functions | |
Q_DISABLE_COPY (XmlHandler) | |
Private Attributes | |
BundleSettings * | m_xmlHandlerBundleSettings |
Project * | m_xmlHandlerProject |
QString | m_xmlHandlerCharacters |
QList< BundleObservationSolveSettings * > | m_xmlHandlerObservationSettings |
XmlStackedHandlerReader * | m_reader |
int | m_depth |
QString | m_lastStartNamespaceURI |
QString | m_lastStartLocalName |
QString | m_lastStartQName |
QXmlAttributes | m_lastStartAtts |
This class is needed to read/write BundleSettings from/to an XML formateed file.
Definition at line 308 of file BundleSettings.h.
Isis::BundleSettings::XmlHandler::XmlHandler | ( | BundleSettings * | bundleSettings, |
Project * | project ) |
Create an XML Handler (reader) that can populate the BundleSettings class data.
See BundleSettings::save() for the expected format. This contructor is called inside the BundleSettings constructor that takes an XmlStackedHandlerReader.
bundleSettings | The BundleSettings we're going to be initializing |
project | The project that contains the settings |
Definition at line 1145 of file BundleSettings.cpp.
Isis::BundleSettings::XmlHandler::~XmlHandler | ( | ) |
Destroys BundleSettings::XmlHandler object.
Definition at line 1156 of file BundleSettings.cpp.
|
virtual |
Add a character from an XML element to the content handler.
ch | charater from XML element |
Definition at line 1326 of file BundleSettings.cpp.
|
virtual |
Handle end tags for the BundleSettings serialized XML.
namespaceURI | URI of the specified tags namespce |
localName | SAX localName |
qName | SAX qualified name |
Reimplemented from Isis::XmlStackedHandler.
Definition at line 1341 of file BundleSettings.cpp.
References Isis::toBool().
bool Isis::BundleSettings::XmlHandler::fatalError | ( | const QXmlParseException & | exception | ) |
Format an error message indicating a problem with BundleSettings.
QXmlParseException | Execption thrown by parser. |
Definition at line 1367 of file BundleSettings.cpp.
|
protectedinherited |
Definition at line 68 of file XmlStackedHandler.cpp.
|
protectedinherited |
Definition at line 73 of file XmlStackedHandler.cpp.
|
virtualinherited |
Definition at line 28 of file XmlStackedHandler.cpp.
|
virtual |
Handle an XML start element.
This method is called when the reader finds an open tag. handle the read when the startElement with the name localName has been found.
qName | SAX namespace for this tag |
localName | SAX local name |
qName | SAX qualified name of the tag. |
attributes | The list of attributes for the tag. |
Reimplemented from Isis::XmlStackedHandler.
Definition at line 1175 of file BundleSettings.cpp.
References Isis::Null, Isis::BundleSettings::stringToConvergenceCriteria(), Isis::SurfacePoint::stringToCoordinateType(), Isis::toBool(), Isis::toDouble(), and Isis::toInt().
|
inherited |
Switch to a new content handler and continue processing using the new handler.
Definition at line 37 of file XmlStackedHandler.cpp.
|
privateinherited |
Definition at line 141 of file XmlStackedHandler.h.
|
privateinherited |
Definition at line 146 of file XmlStackedHandler.h.
|
privateinherited |
Definition at line 144 of file XmlStackedHandler.h.
|
privateinherited |
Definition at line 143 of file XmlStackedHandler.h.
|
privateinherited |
Definition at line 145 of file XmlStackedHandler.h.
|
privateinherited |
Definition at line 140 of file XmlStackedHandler.h.
|
private |
Definition at line 328 of file BundleSettings.h.
|
private |
Definition at line 330 of file BundleSettings.h.
|
private |
Definition at line 331 of file BundleSettings.h.
|
private |
Definition at line 329 of file BundleSettings.h.