USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::ControlList::XmlHandler Class Reference
Inheritance diagram for Isis::ControlList::XmlHandler:
Inheritance graph
Collaboration diagram for Isis::ControlList::XmlHandler:
Collaboration graph

Public Member Functions

 XmlHandler (ControlList *controlList, Project *project)
 Create an XML Handler (reader) that can populate the ControlList class data.
virtual bool startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
 Handle an XML start element.
virtual bool endElement (const QString &namespaceURI, const QString &localName, const QString &qName)
 Handle an XML end element.
virtual void setReader (XmlStackedHandlerReader *)
void switchToNewHandler (XmlStackedHandler *nextHandler)

Protected Member Functions

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

Private Member Functions

 Q_DISABLE_COPY (XmlHandler)

Private Attributes

ControlListm_controlList
Projectm_project

Detailed Description

Author
2012-09-27 Tracie Sucharski - Adapted from ImageList::XmlHandler
History:
2012-09-27 Tracie Sucharski - Original version.

Definition at line 132 of file ControlList.h.

Constructor & Destructor Documentation

Isis::ControlList::XmlHandler::XmlHandler ( ControlList controlList,
Project project 
)

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

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

Parameters
controlListThe control list we're going to be initializing
projectThe project that contains the control list

Definition at line 591 of file ControlList.cpp.

Member Function Documentation

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

Handle an XML end element.

This handles <controlList> by opening and reading the controls.xml file.

Returns
If we should continue reading the XML (usually true).

Reimplemented from Isis::XmlStackedHandler.

Definition at line 634 of file ControlList.cpp.

References _FILEINFO_, and Isis::IException::Io.

bool Isis::ControlList::XmlHandler::startElement ( const QString &  namespaceURI,
const QString &  localName,
const QString &  qName,
const QXmlAttributes &  atts 
)
virtual

Handle an XML start element.

This expects <controlList> and <control> elements (it reads both the project XML and the controls.xml file).

Returns
If we should continue reading the XML (usually true).

Reimplemented from Isis::XmlStackedHandler.

Definition at line 603 of file ControlList.cpp.

References Isis::ControlList::name(), and Isis::ControlList::path().


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