Read and store original Xml labels. More...
#include <OriginalXmlLabel.h>

| 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) | 
Read and store original Xml labels.
This class provides a means to read and store the Xml labels from the original source.
| Isis::OriginalXmlLabel::OriginalXmlLabel | ( | ) | 
Constructors a default OriginalXmlLabel with an empty label.
| Isis::OriginalXmlLabel::OriginalXmlLabel | ( | const QString & | file | ) | 
Constructs an OriginalXmlLabel from a cube label file.
| file | Xml file to read labels from | 
References fromBlob(), and Isis::Blob::Read().
| Isis::OriginalXmlLabel::OriginalXmlLabel | ( | Isis::Blob & | blob | ) | 
Constructs an OriginalXmlLabel from a blob.
| blob | Blob from which to create the OriginalXmlLabel | 
References fromBlob().
| Isis::OriginalXmlLabel::~OriginalXmlLabel | ( | ) | 
Destructor.
| void Isis::OriginalXmlLabel::fromBlob | ( | Isis::Blob | blob | ) | 
References _FILEINFO_, Isis::Blob::getBuffer(), Isis::Blob::Size(), Isis::toString(), and Isis::IException::Unknown.
Referenced by OriginalXmlLabel(), and OriginalXmlLabel().
| 
 | protected | 
| void Isis::OriginalXmlLabel::readFromXmlFile | ( | const FileName & | xmlFileName | ) | 
Read the original label from an Xml file.
| FileName | The Xml file containing the original label. | 
| IException::Io | "Could not open label file." | 
| IException::Unknown | "XML read/parse error in file." | 
References _FILEINFO_, Isis::FileName::expanded(), Isis::IException::Io, Isis::toString(), and Isis::IException::Unknown.
| const QDomDocument & Isis::OriginalXmlLabel::ReturnLabels | ( | ) | const | 
Returns the original Xml label.
| Blob Isis::OriginalXmlLabel::toBlob | ( | ) | const | 
Serialize the OriginalXmlLabel to a Blob.
References Isis::ByteOrderName(), Isis::IsLsb(), Isis::Blob::Label(), Isis::Lsb, Isis::Msb, and Isis::Blob::setData().
Referenced by Isis::Cube::write().