|
Isis 3 Programmer Reference
|
14 #include "PvlObject.h"
17 bool IsBlob(PvlObject &obj);
53 Blob(
const QString &name,
const QString &type);
54 Blob(
const QString &name,
const QString &type,
67 void Read(
const QString &file,
const std::vector<PvlKeyword>
68 keywords=std::vector<PvlKeyword>());
69 void Read(
const QString &file,
const Pvl &pvlLabels,
70 const std::vector<PvlKeyword> keywords = std::vector<PvlKeyword>());
71 virtual void Read(
const Pvl &pvl, std::istream &is,
72 const std::vector<PvlKeyword> keywords = std::vector<PvlKeyword>());
74 void Write(
const QString &file);
75 void Write(
Pvl &pvl, std::fstream &stm,
76 const QString &detachedFileName =
"",
bool overwrite=
true);
80 void setData(
const char *buffer,
int nbytes);
81 void takeData(
char *buffer,
int nbytes);
84 void Find(
const Pvl &pvl,
const std::vector<PvlKeyword> keywords = std::vector<PvlKeyword>());
86 virtual void ReadData(std::istream &is);
virtual void WriteInit()
This virtual method for classes that inherit Blob.
bool IsBlob(PvlObject &obj)
Checks pvl object and returns whether or not it is a Blob.
void takeData(char *buffer, int nbytes)
Set the data stored in the BLOB without copying it.
BigInt p_startByte
Byte blob data starts at in buffer.
Contains Pvl Groups and Pvl Objects.
QString Type() const
Accessor method that returns a string containing the Blob type.
void setData(const char *buffer, int nbytes)
Set the data stored in the BLOB.
Container for cube-like labels.
Blob & operator=(const Blob &other)
This makes the two blob objects exactly the same (copies the blob)
void Find(const Pvl &pvl, const std::vector< PvlKeyword > keywords=std::vector< PvlKeyword >())
This method searches the given Pvl for the Blob by the Blob's type and name.
QString p_labelFile
The file containing the labels.
QString Name() const
Accessor method that returns a string containing the Blob name.
PvlObject p_blobPvl
Pvl Blob object.
void Write(const QString &file)
Write the blob data out to a file.
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.
PvlObject & Label()
Accessor method that returns a PvlObject containing the Blob label.
long long int BigInt
Big int.
QString p_detached
Used for reading detached blobs.
QString p_type
Type of data stored in the buffer.
int Size() const
Accessor method that returns the number of bytes in the blob data.
char * p_buffer
Buffer blob data is stored in.
virtual void ReadInit()
This virtual method for classes that inherit Blob.
virtual void ReadData(std::istream &is)
Read binary data from an input stream into the Blob object.
int p_nbytes
Size of blob data (in bytes)
virtual ~Blob()
Destroys the Blob object.
virtual void WriteData(std::fstream &os)
Writes blob data to a stream.
QString p_blobName
Name of the Blob object.
This is free and unencumbered software released into the public domain.