10#include "OriginalLabel.h"
11#include "Application.h"
20 m_originalLabel.setTerminator(
"");
39 Blob blob =
Blob(
"IsisCube",
"OriginalLabel");
52 m_originalLabel = pvl;
56 OriginalLabel::~OriginalLabel() {
69 for(
int i = 0; i < blob.
Size(); i++){
73 m_originalLabel = pvl;
83 std::stringstream sstream;
84 sstream << m_originalLabel;
85 string orglblStr = sstream.str();
87 blob.
setData(orglblStr.c_str(), orglblStr.size());
98 return m_originalLabel;
int Size() const
Accessor method that returns the number of bytes in the blob data.
void setData(const char *buffer, int nbytes)
Set the data stored in the BLOB.
void Read(const QString &file, const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >())
This method reads Pvl values from a specified file.
char * getBuffer()
Get the internal data buff of the Blob.
Isis::Blob toBlob()
Serialize the OriginalLabel data to a Blob.
OriginalLabel()
Constructor for creating an original blob with a given name.
Pvl ReturnLabels() const
Returns the labels in a Pvl object.
void fromBlob(Isis::Blob blob)
Initialize the OriginalLabel from a Blob.
Container for cube-like labels.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.