![]() |
VR-Forces 5.0.1 Developer's Guide
|
a class representing a row of data from a table. Rows don't really own any data, the columns own the data. The row only owns pointers to the data across the columns.
Public Member Functions | |
| DtVpfRow (const DtVpfRow &row) | |
| DtVpfRow & | operator= (const DtVpfRow &row) |
| DtVpfRow (DtVpfTable *table) | |
| virtual | ~DtVpfRow () |
| virtual bool | loadRow (int row) |
| virtual const DtVpfTable * | table () const |
| virtual const DtVpfData & | operator[] (const unsigned int data) const |
| virtual int | size () const |
| virtual bool | hasField (const DtString &field_name) const |
| virtual const DtVpfIntData * | getIntField (const DtString &field) const |
| virtual const DtVpfFloatData * | getFloatField (const DtString &field) const |
| virtual const DtVpf3CoordData * | getCoordField (const DtString &field) const |
| virtual const DtVpfTextData * | getTextField (const DtString &field) const |
| virtual const DtVpfTripletData * | getTripletField (const DtString &field) const |
Protected Member Functions | |
| virtual DtVpfData * | getField (const DtString &field) const |
Protected Attributes | |
| std::vector< DtVpfData * > | myData |
| DtVpfTable * | myTable |
| DtVpfRow::DtVpfRow | ( | const DtVpfRow & | row | ) |
Copy constructor is private to prevent copying.
| DtVpfRow::DtVpfRow | ( | DtVpfTable * | table | ) |
Constructor takes the table that this column belongs to.
|
virtual |
Destructor.
Assignment operator is private to prevent copying.
loads this row with data from the columns at the given index
|
virtual |
returns the table that owns this row
allows indexed access to the elements of the row
| DtInvalidInput | if the index is out of range |
|
virtual |
returns the number of elements in this row
determines if the row has the named field
|
virtual |
Data specific type of data access.
| DtInvalidInput | if the field is not the right type |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
function to find the requested field used by the data specific types to get the field
| DtInvalidInput | if the field does not exist |
|
protected |
|
protected |