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