Isis 3 Programmer Reference
Isis::BundleResults::XmlHandler Class Reference

This class is an XmlHandler used to read and write BundleResults objects from and to XML files. More...

Inheritance diagram for Isis::BundleResults::XmlHandler:
Inheritance graph
Collaboration diagram for Isis::BundleResults::XmlHandler:
Collaboration graph

Public Member Functions

 XmlHandler (BundleResults *statistics, Project *project)
 Constructs an XmlHandler used to save a BundleResults object. More...
 
 ~XmlHandler ()
 Destroys an XmlHandler. 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)
 Adds a QString to the XmlHandler's internal character data. More...
 
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &qName)
 Handle end tags for the BundleResults serialized XML. 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

XmlStackedHandlerReaderreader ()
 
const XmlStackedHandlerReaderreader () const
 
bool fatalError (const QXmlParseException &exception)
 

Private Member Functions

 Q_DISABLE_COPY (XmlHandler)
 

Private Attributes

BundleResultsm_xmlHandlerBundleResults
 
Projectm_xmlHandlerProject
 
QString m_xmlHandlerCharacters
 
int m_xmlHandlerResidualsListSize
 
int m_xmlHandlerSampleResidualsListSize
 
int m_xmlHandlerLineResidualsListSize
 
int m_xmlHandlerXSigmasListSize
 
int m_xmlHandlerYSigmasListSize
 
int m_xmlHandlerZSigmasListSize
 
int m_xmlHandlerRASigmasListSize
 
int m_xmlHandlerDECSigmasListSize
 
int m_xmlHandlerTWISTSigmasListSize
 
QList< Statistics * > m_xmlHandlerStatisticsList
 
StatCumProbDistDynCalcm_xmlHandlerCumProCalc
 
QString m_xmlHandlerCorrelationImageId
 
QStringList m_xmlHandlerCorrelationParameterList
 
QMap< QString, QStringListm_xmlHandlerCorrelationMap
 

Detailed Description

This class is an XmlHandler used to read and write BundleResults objects from and to XML files.

Documentation will be updated when it is decided if XML support will remain.

Author
2014-07-28 Jeannie Backer

Definition at line 266 of file BundleResults.h.

Constructor & Destructor Documentation

◆ XmlHandler()

Isis::BundleResults::XmlHandler::XmlHandler ( BundleResults statistics,
Project project 
)

Constructs an XmlHandler used to save a BundleResults object.

Parameters
statisticsThe BundleResults that the XmlHandler will save.
projectThe project that the BundleResults object belongs to.

Definition at line 1714 of file BundleResults.cpp.

◆ ~XmlHandler()

Isis::BundleResults::XmlHandler::~XmlHandler ( )

Destroys an XmlHandler.

Definition at line 1741 of file BundleResults.cpp.

Member Function Documentation

◆ characters()

bool Isis::BundleResults::XmlHandler::characters ( const QString &  ch)
virtual

Adds a QString to the XmlHandler's internal character data.

Parameters
chThe data to be added.
Returns
bool true

Definition at line 2118 of file BundleResults.cpp.

◆ endElement()

bool Isis::BundleResults::XmlHandler::endElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName 
)
virtual

Handle end tags for the BundleResults serialized XML.

Parameters
namespaceURIURI of the specified tags namespce
localNameSAX localName
qNameSAX qualified name
Returns
true

Reimplemented from Isis::XmlStackedHandler.

Definition at line 2133 of file BundleResults.cpp.

References _FILEINFO_, Isis::toBool(), Isis::toDouble(), Isis::toInt(), and Isis::IException::Unknown.

◆ startElement()

bool Isis::BundleResults::XmlHandler::startElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName,
const QXmlAttributes &  atts 
)
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.

Parameters
qNameSAX namespace for this tag
localNameSAX local name
qNameSAX qualified name of the tag.
attributesThe list of attributes for the tag.
Returns
bool Indicates whether to continue reading the XML (usually true).

Reimplemented from Isis::XmlStackedHandler.

Definition at line 1764 of file BundleResults.cpp.

References Isis::BundleResults::maximumLikelihoodMedianR2Residuals(), Isis::toDouble(), and Isis::toInt().

◆ switchToNewHandler()

void Isis::XmlStackedHandler::switchToNewHandler ( XmlStackedHandler nextHandler)
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().


The documentation for this class was generated from the following files: