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.
 
 ~XmlHandler ()
 Destroys an XmlHandler.
 
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)
 Adds a QString to the XmlHandler's internal character data.
 
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &qName)
 Handle end tags for the BundleResults serialized XML.
 
virtual void setReader (XmlStackedHandlerReader *)
 
void switchToNewHandler (XmlStackedHandler *nextHandler)
 Switch to a new content handler and continue processing using the new handler.
 

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
 
XmlStackedHandlerReaderm_reader
 
int m_depth
 
QString m_lastStartNamespaceURI
 
QString m_lastStartLocalName
 
QString m_lastStartQName
 
QXmlAttributes m_lastStartAtts
 

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 279 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 1958 of file BundleResults.cpp.

◆ ~XmlHandler()

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

Destroys an XmlHandler.

Definition at line 1985 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 2362 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 2377 of file BundleResults.cpp.

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

◆ fatalError()

bool Isis::XmlStackedHandler::fatalError ( const QXmlParseException & exception)
protectedinherited

Definition at line 78 of file XmlStackedHandler.cpp.

◆ reader() [1/2]

XmlStackedHandlerReader * Isis::XmlStackedHandler::reader ( )
protectedinherited

Definition at line 68 of file XmlStackedHandler.cpp.

◆ reader() [2/2]

const XmlStackedHandlerReader * Isis::XmlStackedHandler::reader ( ) const
protectedinherited

Definition at line 73 of file XmlStackedHandler.cpp.

◆ setReader()

void Isis::XmlStackedHandler::setReader ( XmlStackedHandlerReader * reader)
virtualinherited

Definition at line 28 of file XmlStackedHandler.cpp.

◆ 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 2008 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 37 of file XmlStackedHandler.cpp.

Member Data Documentation

◆ m_depth

int Isis::XmlStackedHandler::m_depth
privateinherited

Definition at line 141 of file XmlStackedHandler.h.

◆ m_lastStartAtts

QXmlAttributes Isis::XmlStackedHandler::m_lastStartAtts
privateinherited

Definition at line 146 of file XmlStackedHandler.h.

◆ m_lastStartLocalName

QString Isis::XmlStackedHandler::m_lastStartLocalName
privateinherited

Definition at line 144 of file XmlStackedHandler.h.

◆ m_lastStartNamespaceURI

QString Isis::XmlStackedHandler::m_lastStartNamespaceURI
privateinherited

Definition at line 143 of file XmlStackedHandler.h.

◆ m_lastStartQName

QString Isis::XmlStackedHandler::m_lastStartQName
privateinherited

Definition at line 145 of file XmlStackedHandler.h.

◆ m_reader

XmlStackedHandlerReader* Isis::XmlStackedHandler::m_reader
privateinherited

Definition at line 140 of file XmlStackedHandler.h.

◆ m_xmlHandlerBundleResults

BundleResults* Isis::BundleResults::XmlHandler::m_xmlHandlerBundleResults
private

Definition at line 294 of file BundleResults.h.

◆ m_xmlHandlerCharacters

QString Isis::BundleResults::XmlHandler::m_xmlHandlerCharacters
private

Definition at line 296 of file BundleResults.h.

◆ m_xmlHandlerCorrelationImageId

QString Isis::BundleResults::XmlHandler::m_xmlHandlerCorrelationImageId
private

Definition at line 309 of file BundleResults.h.

◆ m_xmlHandlerCorrelationMap

QMap<QString, QStringList> Isis::BundleResults::XmlHandler::m_xmlHandlerCorrelationMap
private

Definition at line 311 of file BundleResults.h.

◆ m_xmlHandlerCorrelationParameterList

QStringList Isis::BundleResults::XmlHandler::m_xmlHandlerCorrelationParameterList
private

Definition at line 310 of file BundleResults.h.

◆ m_xmlHandlerCumProCalc

StatCumProbDistDynCalc* Isis::BundleResults::XmlHandler::m_xmlHandlerCumProCalc
private

Definition at line 307 of file BundleResults.h.

◆ m_xmlHandlerDECSigmasListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerDECSigmasListSize
private

Definition at line 304 of file BundleResults.h.

◆ m_xmlHandlerLineResidualsListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerLineResidualsListSize
private

Definition at line 299 of file BundleResults.h.

◆ m_xmlHandlerProject

Project* Isis::BundleResults::XmlHandler::m_xmlHandlerProject
private

Definition at line 295 of file BundleResults.h.

◆ m_xmlHandlerRASigmasListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerRASigmasListSize
private

Definition at line 303 of file BundleResults.h.

◆ m_xmlHandlerResidualsListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerResidualsListSize
private

Definition at line 297 of file BundleResults.h.

◆ m_xmlHandlerSampleResidualsListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerSampleResidualsListSize
private

Definition at line 298 of file BundleResults.h.

◆ m_xmlHandlerStatisticsList

QList<Statistics *> Isis::BundleResults::XmlHandler::m_xmlHandlerStatisticsList
private

Definition at line 306 of file BundleResults.h.

◆ m_xmlHandlerTWISTSigmasListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerTWISTSigmasListSize
private

Definition at line 305 of file BundleResults.h.

◆ m_xmlHandlerXSigmasListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerXSigmasListSize
private

Definition at line 300 of file BundleResults.h.

◆ m_xmlHandlerYSigmasListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerYSigmasListSize
private

Definition at line 301 of file BundleResults.h.

◆ m_xmlHandlerZSigmasListSize

int Isis::BundleResults::XmlHandler::m_xmlHandlerZSigmasListSize
private

Definition at line 302 of file BundleResults.h.


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