Isis 3 Programmer Reference
OriginalXmlLabel.h
Go to the documentation of this file.
1 #ifndef OriginalXmlLabel_h
2 #define OriginalXmlLabel_h
3 
27 #include <QDomDocument>
28 
29 #include "Blob.h"
30 #include "FileName.h"
31 
32 namespace Isis {
48  class OriginalXmlLabel : public Isis::Blob {
49  public:
51  OriginalXmlLabel(const QString &file);
53 
54  void readFromXmlFile(const FileName &xmlFileName);
55  const QDomDocument &ReturnLabels() const;
56 
57  protected:
58  void ReadData(std::istream &stream);
59  void WriteData(std::fstream &os);
60  void WriteInit();
61 
62  private:
63  QDomDocument m_originalLabel;
64  };
65 };
66 
67 #endif
68 
void WriteInit()
Prepare to write the label out.
const QDomDocument & ReturnLabels() const
Returns the original Xml label.
File name manipulation and expansion.
Definition: FileName.h:116
Read and store original Xml labels.
OriginalXmlLabel()
Constructors a default OriginalXmlLabel with an empty label.
QDomDocument m_originalLabel
Original Xml Label.
void WriteData(std::fstream &os)
Write the label out to a stream.
void ReadData(std::istream &stream)
Read the xml file data from an input stream.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void readFromXmlFile(const FileName &xmlFileName)
Read the original label from an Xml file.
~OriginalXmlLabel()
Destructor.