|
Isis 3.0 Object Programmers' Reference |
Home |
#include <TableRecord.h>
Collaboration diagram for Isis::TableRecord:

For internal use only.
Definition at line 47 of file TableRecord.h.
Public Member Functions | |
| TableRecord () | |
| Constructs a TableRecord object. | |
| ~TableRecord () | |
| Destroys the TableRecord object. | |
| int | Fields () const |
| Returns the number of fields that are in the record. | |
| void | operator+= (Isis::TableField &field) |
| Adds a TableField to a TableRecord. | |
| int | RecordSize () const |
| Returns the number of bytes per record. | |
| Isis::TableField & | operator[] (const int field) |
| Returns the TableField at the specified location in the TableRecord. | |
| Isis::TableField & | operator[] (const std::string &field) |
| Returns the TableField in the record whose name corresponds to the input string. | |
| void | Pack (char *buf) const |
| void | Unpack (const char *buf) |
| void | Swap (char *buf) const |
Private Attributes | |
| std::vector< Isis::TableField > | p_fields |
| Vector of TableFields in the record. | |
| Isis::TableRecord::TableRecord | ( | ) | [inline] |
| Isis::TableRecord::~TableRecord | ( | ) | [inline] |
| int Isis::TableRecord::Fields | ( | ) | const [inline] |
Returns the number of fields that are in the record.
Definition at line 60 of file TableRecord.h.
References p_fields.
Referenced by Pack(), Swap(), Isis::Table::Table(), and Unpack().
| void Isis::TableRecord::operator+= | ( | Isis::TableField & | field | ) | [inline] |
Adds a TableField to a TableRecord.
| field | - TableField to be added to the record |
Definition at line 67 of file TableRecord.h.
| Isis::TableField & Isis::TableRecord::operator[] | ( | const std::string & | field | ) |
Returns the TableField in the record whose name corresponds to the input string.
| field | The name of desired TableField |
| Isis::iException::Programmer | - The field does not exist in the record |
Definition at line 53 of file TableRecord.cpp.
References _FILEINFO_, Isis::iException::Message(), p_fields, and Isis::iString::UpCase().
| Isis::TableField& Isis::TableRecord::operator[] | ( | const int | field | ) | [inline] |
Returns the TableField at the specified location in the TableRecord.
| field | Index of desired field |
Definition at line 78 of file TableRecord.h.
References p_fields.
| void Isis::TableRecord::Pack | ( | char * | buf | ) | const |
| buf |
| Isis::iException::Programmer | - Invalid field type |
Definition at line 73 of file TableRecord.cpp.
References _FILEINFO_, field, Fields(), Isis::iException::Message(), and p_fields.
Referenced by Isis::Table::operator+=(), and Isis::Table::Update().
| int Isis::TableRecord::RecordSize | ( | ) | const |
Returns the number of bytes per record.
Definition at line 36 of file TableRecord.cpp.
References p_fields.
Referenced by Isis::Table::RecordSize().
| void Isis::TableRecord::Swap | ( | char * | buf | ) | const |
| buf |
| Isis::iException::Programmer | - Invalid field type |
Definition at line 141 of file TableRecord.cpp.
References _FILEINFO_, field, Fields(), Isis::iException::Message(), and p_fields.
Referenced by Isis::Table::ReadData().
| void Isis::TableRecord::Unpack | ( | const char * | buf | ) |
| buf |
Definition at line 125 of file TableRecord.cpp.
References field, Fields(), and p_fields.
Referenced by Isis::Table::operator[]().
std::vector<Isis::TableField> Isis::TableRecord::p_fields [private] |
Vector of TableFields in the record.
Definition at line 87 of file TableRecord.h.
Referenced by Fields(), operator+=(), operator[](), Pack(), RecordSize(), Swap(), and Unpack().