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 
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
FileName.h
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::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::Blob::setData
void setData(const char *buffer, int nbytes)
Set the data stored in the BLOB.
Definition: Blob.cpp:382
Isis::IsLsb
bool IsLsb()
Return true if this host is an LSB first machine and false if it is not.
Definition: Endian.h:67
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::fromBlob
void fromBlob(Isis::Blob blob)
Definition: OriginalXmlLabel.cpp:58
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::Blob::Read
void Read(const QString &file, const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >())
This method reads Pvl values from a specified file.
Definition: Blob.cpp:255
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
OriginalXmlLabel.h
Isis::Blob::getBuffer
char * getBuffer()
Get the internal data buff of the Blob.
Definition: Blob.cpp:546
Isis::Blob::Label
PvlObject & Label()
Accessor method that returns a PvlObject containing the Blob label.
Definition: Blob.cpp:151
Isis::OriginalXmlLabel
Read and store original Xml labels.
Definition: OriginalXmlLabel.h:32
Application.h
Blob.h
Isis::Msb
@ Msb
Definition: Endian.h:45
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::Blob::Size
int Size() const
Accessor method that returns the number of bytes in the blob data.
Definition: Blob.cpp:142
Isis::OriginalXmlLabel::ReadData
void ReadData(std::istream &stream)
std
Namespace for the standard library.
PvlObject.h
Isis::ByteOrderName
QString ByteOrderName(Isis::ByteOrder byteOrder)
Definition: Endian.h:48
Isis::Lsb
@ Lsb
Definition: Endian.h:44
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