GlsMap Toolkit
1.4.1
|
#include <vpf_table_header.h>
Classes | |
class | ColumnDefinition |
Public Types | |
typedef VPFUtil::PointerArray< ColumnDefinition > | ColumnDefinitionArray |
Public Member Functions | |
VPFTableHeader (VPFFile &infile) | |
VPFUtil::EndianMode | GetEndianMode (void) const |
const char * | GetDescription (void) const |
const char * | GetNarrativeFilename (void) const |
unsigned int | GetColumnCount (void) const |
const ColumnDefinition * | GetColumnDefinition (unsigned int index) const |
bool | FindColumn (const char *const colName, unsigned int &colIndex) const |
bool | IsValid (void) const |
Protected Types | |
enum | { DESCRIPTION_LENGTH = 81u } |
enum | { NARRATIVE_FILE_LENGTH = 13u } |
Protected Attributes | |
VPFUtil::WarningBool | _isValid |
VPFUtil::EndianMode | _endianMode |
char | _description [DESCRIPTION_LENGTH+1u] |
char | _narrativeFile [NARRATIVE_FILE_LENGTH+1u] |
ColumnDefinitionArray | _columnDefs |
reads and encapsulates a VPF table header
array of column definition pointers
VPFTableHeader::VPFTableHeader | ( | VPFFile & | infile | ) |
Read the table header from the given VPF file. Infile will be "seeked" to just past the header on success.
infile | VPF file to read header from (must be "seeked" to start of file) |
bool VPFTableHeader::FindColumn | ( | const char *const | colName, |
unsigned int & | colIndex | ||
) | const |
Find the column index to the column in the table header with the given column name
colName | name of desired column |
colIndex | [out] receives zero based column index on success |
|
inline |
Get the number of columns in the table
|
inline |
Get a column definition for a given column in the table
index | zero based index into columns |
|
inline |
Get the description from the table header /return description from the table header
|
inline |
Get the endian mode read from the table header
|
inline |
Get the filename of a narrative file associated with the table header
|
inline |
|
protected |
column definitions in header
|
protected |
table description plus terminator
|
protected |
endian mode of data in table
|
protected |
true if header was read successfully else false
|
protected |
narrative file name plus terminator