Isis Developer Reference
Isis::OriginalXmlLabel Class Reference

Read and store original Xml labels. More...

#include <OriginalXmlLabel.h>

Collaboration diagram for Isis::OriginalXmlLabel:
Collaboration graph

Public Member Functions

 OriginalXmlLabel ()
 Constructors a default OriginalXmlLabel with an empty label.
 
 OriginalXmlLabel (const QString &file)
 Constructs an OriginalXmlLabel from a cube label file.
 
 OriginalXmlLabel (Blob &blob)
 Constructs an OriginalXmlLabel from a blob.
 
 ~OriginalXmlLabel ()
 Destructor.
 
Blob toBlob () const
 Serialize the OriginalXmlLabel to a Blob.
 
void fromBlob (Isis::Blob blob)
 
void readFromXmlFile (const FileName &xmlFileName)
 Read the original label from an Xml file.
 
const QDomDocument & ReturnLabels () const
 Returns the original Xml label.
 

Protected Member Functions

void ReadData (std::istream &stream)
 

Detailed Description

Read and store original Xml labels.

This class provides a means to read and store the Xml labels from the original source.

Author
2017-01-30 Jesse Mapel

Constructor & Destructor Documentation

◆ OriginalXmlLabel() [1/3]

Isis::OriginalXmlLabel::OriginalXmlLabel ( )

Constructors a default OriginalXmlLabel with an empty label.

◆ OriginalXmlLabel() [2/3]

Isis::OriginalXmlLabel::OriginalXmlLabel ( const QString & file)

Constructs an OriginalXmlLabel from a cube label file.

Parameters
fileXml file to read labels from

References fromBlob().

◆ OriginalXmlLabel() [3/3]

Isis::OriginalXmlLabel::OriginalXmlLabel ( Isis::Blob & blob)

Constructs an OriginalXmlLabel from a blob.

Parameters
blobBlob from which to create the OriginalXmlLabel

References fromBlob().

◆ ~OriginalXmlLabel()

Isis::OriginalXmlLabel::~OriginalXmlLabel ( )

Destructor.

Member Function Documentation

◆ fromBlob()

void Isis::OriginalXmlLabel::fromBlob ( Isis::Blob blob)

◆ ReadData()

void Isis::OriginalXmlLabel::ReadData ( std::istream & stream)
protected

◆ readFromXmlFile()

void Isis::OriginalXmlLabel::readFromXmlFile ( const FileName & xmlFileName)

Read the original label from an Xml file.

Parameters
FileNameThe Xml file containing the original label.
Exceptions
IException::Io"Could not open label file."
IException::Unknown"XML read/parse error in file."

References _FILEINFO_, Isis::IException::Io, Isis::toString(), and Isis::IException::Unknown.

◆ ReturnLabels()

const QDomDocument & Isis::OriginalXmlLabel::ReturnLabels ( ) const

Returns the original Xml label.

Returns
QDomDocument The parsed original label

◆ toBlob()

Blob Isis::OriginalXmlLabel::toBlob ( ) const

Serialize the OriginalXmlLabel to a Blob.

Returns
Blob

References Isis::ByteOrderName(), Isis::IsLsb(), Isis::Lsb, and Isis::Msb.


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