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. More... | |
XmlHandler (BundleSettings *bundleSettings) | |
~XmlHandler () | |
Destroys BundleSettings::XmlHandler object. More... | |
virtual bool | startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts) |
Handle an XML start element. More... | |
virtual bool | characters (const QString &ch) |
Add a character from an XML element to the content handler. More... | |
virtual bool | endElement (const QString &namespaceURI, const QString &localName, const QString &qName) |
Handle end tags for the BundleSettings serialized XML. More... | |
bool | fatalError (const QXmlParseException &exception) |
Format an error message indicating a problem with BundleSettings. 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 |
Private Member Functions | |
Q_DISABLE_COPY (XmlHandler) | |
Private Attributes | |
BundleSettings * | m_xmlHandlerBundleSettings |
Project * | m_xmlHandlerProject |
QString | m_xmlHandlerCharacters |
QList< BundleObservationSolveSettings * > | m_xmlHandlerObservationSettings |
This class is needed to read/write BundleSettings from/to an XML formateed file.
Definition at line 321 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 1140 of file BundleSettings.cpp.
Isis::BundleSettings::XmlHandler::~XmlHandler | ( | ) |
Destroys BundleSettings::XmlHandler object.
Definition at line 1151 of file BundleSettings.cpp.
|
virtual |
Add a character from an XML element to the content handler.
ch | charater from XML element |
Definition at line 1321 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 1336 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 1362 of file BundleSettings.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 1170 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 32 of file XmlStackedHandler.cpp.
Referenced by Isis::XmlStackedHandlerReader::pushContentHandler().