11#include "TableRecord.h"
77 Table(
const QString &tableName);
78 Table(
const QString &tableName,
const QString &file);
79 Table(
const QString &tableName,
const QString &file,
80 const Pvl &fileHeader);
87 void Write(
const QString &file);
111 void Delete(
const int index);
118 static QString
toString(
Table table, QString fieldDelimiter=
",");
Container for cube-like labels.
Contains Pvl Groups and Pvl Objects.
Class for storing Table blobs information.
~Table()
Destroys the Table object.
QString p_name
The name of the Table.
int RecordSize() const
Returns the number of bytes per record.
int RecordFields() const
Returns the number of fields per record.
bool IsSampleAssociated()
Checks to see if association is Samples.
Association p_assoc
Association Type of the table.
void Delete(const int index)
Deletes a TableRecord from the Table.
int p_records
Holds record count read from labels, may differ from the size of p_recbufs.
int Records() const
Returns the number of records.
PvlObject & Label()
The Table's label.
void Write(const QString &file)
Write the Table to a file.
bool p_swap
Only used for reading.
void operator+=(TableRecord &rec)
Adds a TableRecord to the Table.
void SetAssociation(const Table::Association assoc)
Sets the association to the input parameter.
TableRecord & operator[](const int index)
Reads a TableRecord from the Table.
QString Name() const
The Table's name.
std::vector< char * > p_recbufs
Buffers containing record values.
TableRecord p_record
The current table record.
bool IsBandAssociated()
Checks to see if association is Bands.
bool IsLineAssociated()
Checks to see if association is Lines.
Table & operator=(const Isis::Table &other)
Sets the Table equal to the input Table object.
void Clear()
Clear the table of all records.
void Update(const TableRecord &rec, const int index)
Updates a TableRecord.
void initFromBlob(Blob &blob)
Initialize a Table from a Blob that has been read from a file.
static QString toString(Table table, QString fieldDelimiter=",")
Convert the data from a Table into a string.
PvlObject p_label
The label for storing additional information.
Blob toBlob() const
Serialze the Table to a Blob that can be written to a file.
This is free and unencumbered software released into the public domain.