USGS

Isis 3.0 Object Programmers' Reference

Home

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

Public Member Functions

 XmlHandler (ImageList *imageList, Project *project)
 Create an XML Handler (reader) that can populate the ImageList 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
 

Private Member Functions

 Q_DISABLE_COPY (XmlHandler)
 

Private Attributes

ImageListm_imageList
 
Projectm_project
 

Detailed Description

Author
2012-07-01 Steven Lambright

Definition at line 103 of file ImageList.h.

Constructor & Destructor Documentation

Isis::ImageList::XmlHandler::XmlHandler ( ImageList imageList,
Project project 
)

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

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

Parameters
imageListThe image list we're going to be initializing
projectThe project that contains the image list

Definition at line 1024 of file ImageList.cpp.

Member Function Documentation

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

Handle an XML end element.

This handles <imageList> by opening and reading the images.xml file.

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

Reimplemented from Isis::XmlStackedHandler.

Definition at line 1067 of file ImageList.cpp.

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

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

Handle an XML start element.

This expects <imageList> and <image> elements (it reads both the project XML and the images.xml file).

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

Reimplemented from Isis::XmlStackedHandler.

Definition at line 1036 of file ImageList.cpp.

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


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