![]() |
VR-Forces 4.8 Class Documentation
|
This class is the table that holds a file from the VPF database. More...
Public Member Functions | |
| DtVpfTable (const DtFilename &path) | |
| Constructor takes an absolute path to the table. More... | |
| virtual | ~DtVpfTable () |
| destructor More... | |
| virtual std::istream & | file () |
| a file stream of the file used for reading the table in More... | |
| virtual const DtFilename & | fileName () const |
| the name of the table's file More... | |
| virtual const DtFilename & | filePath () |
| the path to the table's file More... | |
| virtual bool | mustSwap () const |
| determines if the byte order of the machine and the file match More... | |
| virtual const DtVpfColumn * | column (const DtString &columnName) const |
| returns a column with a given name will throw an exception if there is not a column of the given name More... | |
| virtual const DtColumnList * | columns () const |
| return a pointer to the list of columns More... | |
| virtual unsigned int | numColumns () const |
| returns the number of columns that this table has loaded More... | |
| virtual const DtVpfRow * | row (int unsigned rowNumber) const |
| returns a row with the given index with thrown an exception if the row does not exist More... | |
| virtual const DtVpfRow * | rowById (int unsigned id) const |
| returns a row with the given ID (since all rows have IDs) with thrown an exception if the row does not exist More... | |
| virtual const DtRowList * | rows () const |
| returns a pointer to the list of rows More... | |
| virtual unsigned int | numRows () const |
| returns the number of rows that this table has loaded More... | |
| virtual const DtVpfTable * | intDescriptionTable () const |
| returns the table that contains the integer data descriptions More... | |
| virtual const DtVpfTable * | charDescriptionTable () const |
| returns the table that contains the character data descriptions More... | |
Protected Member Functions | |
| virtual bool | readTable () |
| loads the entire table from disk More... | |
| virtual bool | readHeader () |
| loads the table header from disk More... | |
| virtual bool | readData () |
| loads the table data from disk More... | |
| virtual void | calculateByteOrder () |
| determine the byte order of this machine More... | |
| virtual bool | loadValueDescriptionTable (const DtString &tableName) |
| loads the value description table from disk More... | |
Protected Attributes | |
| int | myHeaderLength |
| DtByteOrderEnum | myFileByteOrder |
| DtByteOrderEnum | myMachineByteOrder |
| DtString | myTableDescription |
| DtString | myNarrativeTableFileName |
| DtFilename | myFileName |
| DtFilename | myFilePath |
| std::ifstream | myFile |
| std::ifstream::pos_type | myFileSize |
| DtColumnList | myColumns |
| DtRowList | myRows |
| DtVpfTable * | myIntDescriptions |
| DtVpfTable * | myCharDescriptions |
Private Types | |
| enum | DtByteOrderEnum { LSB, MSB } |
| Enumeration for Least Significant Byte or Most Significant byte order. More... | |
Private Member Functions | |
| DtVpfTable (const DtVpfTable &table) | |
| Copy constructor is private to prevent copying. More... | |
| DtVpfTable & | operator= (const DtVpfTable &table) |
| Assignment operator is private to prevent copying. More... | |
This class is the table that holds a file from the VPF database.
|
private |
|
private |
Copy constructor is private to prevent copying.
| DtVpfTable::DtVpfTable | ( | const DtFilename & | path | ) |
Constructor takes an absolute path to the table.
| DtInvalid | Input if path is incorrect |
|
virtual |
destructor
|
private |
Assignment operator is private to prevent copying.
|
virtual |
a file stream of the file used for reading the table in
|
virtual |
the name of the table's file
|
virtual |
the path to the table's file
|
virtual |
determines if the byte order of the machine and the file match
|
virtual |
returns a column with a given name will throw an exception if there is not a column of the given name
| DtInvalidInput | if the column name does not exist |
|
virtual |
return a pointer to the list of columns
returns the number of columns that this table has loaded
returns a row with the given index with thrown an exception if the row does not exist
| DtInvalidInput | if the row index is out of range |
returns a row with the given ID (since all rows have IDs) with thrown an exception if the row does not exist
| DtInvalidInput | if the row index is out of range |
|
virtual |
returns a pointer to the list of rows
returns the number of rows that this table has loaded
|
virtual |
returns the table that contains the integer data descriptions
|
virtual |
returns the table that contains the character data descriptions
|
protectedvirtual |
loads the entire table from disk
|
protectedvirtual |
loads the table header from disk
|
protectedvirtual |
loads the table data from disk
|
protectedvirtual |
determine the byte order of this machine
loads the value description table from disk
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |