92 Table(
const QString &tableName);
93 Table(
const QString &tableName,
const QString &file);
94 Table(
const QString &tableName,
const QString &file,
95 const Pvl &fileHeader);
124 void Delete(
const int index);
129 static QString
toString(
Table table, QString fieldDelimiter=
",");
133 void ReadData(std::istream &stream);
void WriteInit()
Virtual Function to prepare labels for writing.
Definition: Table.cpp:376
int Records() const
Returns the number of records.
Definition: Table.cpp:224
friend std::ostream & operator<<(std::ostream &os, Table &table)
Association
Definition: Table.h:82
bool IsBandAssociated()
Checks to see if association is Bands.
Definition: Table.cpp:215
TableRecord p_record
The current table record.
Definition: Table.h:137
int RecordSize() const
Returns the number of bytes per record.
Definition: Table.cpp:242
bool IsLineAssociated()
Checks to see if association is Lines.
Definition: Table.cpp:205
void WriteData(std::fstream &os)
Virtual function to write the data.
Definition: Table.cpp:406
int p_records
Holds record count read from labels, may differ from the size of p_recbufs.
Definition: Table.h:140
~Table()
Destroys the Table object.
Definition: Table.cpp:176
std::vector< char * > p_recbufs
Buffers containing record values.
Definition: Table.h:138
Association p_assoc
Association Type of the table.
Definition: Table.h:143
void Clear()
Clear the table of all records.
Definition: Table.cpp:307
int RecordFields() const
Returns the number of fields per record.
Definition: Table.cpp:233
friend std::istream & operator>>(std::istream &is, Table &table)
static QString toString(Table table, QString fieldDelimiter=",")
Definition: Table.cpp:413
void Delete(const int index)
Deletes a TableRecord from the Table.
Definition: Table.cpp:297
Container for cube-like labels.
Definition: Pvl.h:135
void Update(const TableRecord &rec, const int index)
Updates a TableRecord.
Definition: Table.cpp:288
void SetAssociation(const Table::Association assoc)
Sets the association to the input parameter.
Definition: Table.cpp:185
Table & operator=(const Isis::Table &other)
Sets the Table equal to the input Table object.
Definition: Table.cpp:154
Class for storing Table blobs information.
Definition: Table.h:77
void operator+=(TableRecord &rec)
Adds a TableRecord to the Table.
Definition: Table.cpp:263
TableRecord & operator[](const int index)
Reads a TableRecord from the Table.
Definition: Table.cpp:253
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void ReadInit()
Virtual function to validate PVL table information.
Definition: Table.cpp:313
bool IsSampleAssociated()
Checks to see if association is Samples.
Definition: Table.cpp:195
Definition: TableRecord.h:54
void ReadData(std::istream &stream)
Virtual function to Read the data.
Definition: Table.cpp:351
bool p_swap
Only used for reading.
Definition: Table.h:144