Isis 3 Programmer Reference
OriginalXmlLabel.h
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 
16 namespace Isis {
33  public:
35  OriginalXmlLabel(const QString &file);
36  OriginalXmlLabel(Blob &blob);
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
Isis::OriginalXmlLabel::OriginalXmlLabel
OriginalXmlLabel()
Constructors a default OriginalXmlLabel with an empty label.
Definition: OriginalXmlLabel.cpp:23
Isis::OriginalXmlLabel::toBlob
Blob toBlob() const
Serialize the OriginalXmlLabel to a Blob.
Definition: OriginalXmlLabel.cpp:78
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::OriginalXmlLabel::ReturnLabels
const QDomDocument & ReturnLabels() const
Returns the original Xml label.
Definition: OriginalXmlLabel.cpp:130
Isis::OriginalXmlLabel
Read and store original Xml labels.
Definition: OriginalXmlLabel.h:32
Isis::OriginalXmlLabel::m_originalLabel
QDomDocument m_originalLabel
Original Xml Label.
Definition: OriginalXmlLabel.h:49
Isis::Blob
Definition: Blob.h:51
Isis::OriginalXmlLabel::readFromXmlFile
void readFromXmlFile(const FileName &xmlFileName)
Read the original label from an Xml file.
Definition: OriginalXmlLabel.cpp:103
Isis::OriginalXmlLabel::~OriginalXmlLabel
~OriginalXmlLabel()
Destructor.
Definition: OriginalXmlLabel.cpp:51
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16