Isis 3.0 Programmer Reference
Back | Home
Isis::BundleSettings::XmlHandler Class Reference

This class is needed to read/write BundleSettings from/to an XML formateed file. More...

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

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 ()
 Create an XML Handler (reader) that can populate the BundleSettings class data. 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)
 XML - TBD. More...
 
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &qName)
 XML - TBD. More...
 
bool fatalError (const QXmlParseException &exception)
 XML - TBD. More...
 
virtual void setReader (XmlStackedHandlerReader *)
 
void switchToNewHandler (XmlStackedHandler *nextHandler)
 

Protected Member Functions

XmlStackedHandlerReaderreader ()
 
const XmlStackedHandlerReaderreader () const
 

Private Member Functions

 Q_DISABLE_COPY (XmlHandler)
 

Private Attributes

BundleSettingsm_xmlHandlerBundleSettings
 
Projectm_xmlHandlerProject
 
QString m_xmlHandlerCharacters
 
QList
< BundleObservationSolveSettings * > 
m_xmlHandlerObservationSettings
 

Detailed Description

This class is needed to read/write BundleSettings from/to an XML formateed file.

Author
2014-07-21 Ken Edmundson
History:
2014-07-21 Ken Edmundson - Original version.

Definition at line 311 of file BundleSettings.h.

Constructor & Destructor Documentation

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.

Parameters
bundleSettingsThe BundleSettings we're going to be initializing
projectThe project that contains the settings

Definition at line 1288 of file BundleSettings.cpp.

Isis::BundleSettings::XmlHandler::~XmlHandler ( )

Create an XML Handler (reader) that can populate the BundleSettings class data.

See BundleSettings::save() for the expected format.

Parameters
bundleSettingsThe BundleSettings we're going to be initializing
imageFolderThe folder that contains the Cube Destroys BundleSettings::XmlHandler object.

NOTE: Currently this method is not used and may be deleted. Documentation and testing to be completed if called. TargetBody info should be added also.

Definition at line 1319 of file BundleSettings.cpp.

Member Function Documentation

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

XML - TBD.

NOTE: Currently this method is not used and may be deleted. Documentation and testing to be completed if called. TargetBody info should be added also.

Definition at line 1476 of file BundleSettings.cpp.

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

XML - TBD.

NOTE: Currently this method is not used and may be deleted. Documentation and testing to be completed if called. TargetBody info should be added also.

Reimplemented from Isis::XmlStackedHandler.

Definition at line 1489 of file BundleSettings.cpp.

References Isis::toBool().

bool Isis::BundleSettings::XmlHandler::fatalError ( const QXmlParseException &  exception)

XML - TBD.

NOTE: Currently this method is not used and may be deleted. Documentation and testing to be completed if called. TargetBody info should be added also.

Definition at line 1520 of file BundleSettings.cpp.

bool Isis::BundleSettings::XmlHandler::startElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName,
const QXmlAttributes &  attributes 
)
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
qNameThe 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 1336 of file BundleSettings.cpp.

References Isis::Null, Isis::BundleSettings::stringToConvergenceCriteria(), Isis::toBool(), Isis::toDouble(), and Isis::toInt().


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

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 ISIS Support Center
File Modified: 07/12/2023 23:35:27