Isis Developer Reference
History.h
Go to the documentation of this file.
1 #ifndef History_h
2 #define History_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include "Blob.h"
12 #include "Pvl.h"
13 
14 namespace Isis {
15  class PvlObject;
38  class History {
39  public:
40  History();
41  History(Isis::Blob &blob);
42  ~History();
43 
44  void AddEntry();
45  void AddEntry(Isis::PvlObject &obj);
46  Pvl ReturnHist();
47 
48  Blob toBlob(const QString &name = "IsisCube");
49 
50  private:
51  Pvl p_history;
52  char *p_histBuffer = nullptr;
53  int p_bufferSize = 0;
54  };
55 };
56 
57 #endif
Isis::iApp
Application * iApp
Definition: Application.cpp:51
Isis::Blob::takeData
void takeData(char *buffer, int nbytes)
Set the data stored in the BLOB without copying it.
Definition: Blob.cpp:398
Isis::PvlObject
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
Isis::History::ReturnHist
Pvl ReturnHist()
Reads p_histBuffer into a pvl.
Definition: History.cpp:99
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::PvlObject::object
PvlObject & object(const int index)
Return the object at the specified index.
Definition: PvlObject.cpp:489
Isis::History::~History
~History()
Destructor.
Definition: History.cpp:42
Pvl.h
Isis::Blob::getBuffer
char * getBuffer()
Get the internal data buff of the Blob.
Definition: Blob.cpp:546
Application.h
Blob.h
Isis::History::AddEntry
void AddEntry()
Adds History PvlObject.
Definition: History.cpp:52
History.h
Isis::Blob::Size
int Size() const
Accessor method that returns the number of bytes in the blob data.
Definition: Blob.cpp:142
std
Namespace for the standard library.
Isis::History::toBlob
Blob toBlob(const QString &name="IsisCube")
Converts a history object into a new blob object.
Definition: History.cpp:75
PvlObject.h
Isis::History
Definition: History.h:38
Isis::History::History
History()
Default Constructor for history.
Definition: History.cpp:22
Isis::Blob
Definition: Blob.h:51
Isis::Application::History
PvlObject History()
Creates an application history PvlObject.
Definition: Application.cpp:251
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16