Isis Developer Reference
OriginalXmlLabel.h
Go to the documentation of this file.
1#ifndef OriginalXmlLabel_h
2#define OriginalXmlLabel_h
3
9/* SPDX-License-Identifier: CC0-1.0 */
10
11#include <QDomDocument>
12
13#include "Blob.h"
14#include "FileName.h"
15
16namespace Isis {
33 public:
35 OriginalXmlLabel(const QString &file);
38
39 Blob toBlob() const;
40
41 void fromBlob(Isis::Blob blob);
42 void readFromXmlFile(const FileName &xmlFileName);
43 const QDomDocument &ReturnLabels() const;
44
45 protected:
46 void ReadData(std::istream &stream);
47
48 private:
49 QDomDocument m_originalLabel;
50 };
51};
52
53#endif
Definition Blob.h:51
File name manipulation and expansion.
Definition FileName.h:100
Read and store original Xml labels.
Definition OriginalXmlLabel.h:32
const QDomDocument & ReturnLabels() const
Returns the original Xml label.
Definition OriginalXmlLabel.cpp:130
void readFromXmlFile(const FileName &xmlFileName)
Read the original label from an Xml file.
Definition OriginalXmlLabel.cpp:103
void ReadData(std::istream &stream)
OriginalXmlLabel()
Constructors a default OriginalXmlLabel with an empty label.
Definition OriginalXmlLabel.cpp:23
~OriginalXmlLabel()
Destructor.
Definition OriginalXmlLabel.cpp:51
Blob toBlob() const
Serialize the OriginalXmlLabel to a Blob.
Definition OriginalXmlLabel.cpp:78
void fromBlob(Isis::Blob blob)
Definition OriginalXmlLabel.cpp:58
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16