|
GL Studio C++ Runtime API
|
#include <vpf_table_header.h>
Classes | |
| struct | Check |
Public Member Functions | |
| ColumnDefinition (VPFFile &infile) | |
| ~ColumnDefinition () | |
| bool | IsValid (void) const |
| const char * | GetName (void) const |
| VPFUtil::DataType | GetDataType (void) const |
| int | GetNumberOfElements (void) const |
| VPFUtil::KeyType | GetKeyType (void) const |
| const char * | GetDescription (void) const |
| const char * | GetValueDescriptionTableName (void) const |
| const char * | GetThematicIndexName (void) const |
| const char * | GetNarrativeTableName (void) const |
| bool | CheckDefinition (const Check &colCheck, const bool colCanBeNULL=false) const |
Protected Member Functions | |
| bool | ReadNumElements (VPFFile &infile) |
Protected Attributes | |
| VPFUtil::WarningBool | _isValid |
| char | _name [NAME_LENGTH+1u] |
| VPFUtil::DataType | _dataType |
| int | _numElements |
| VPFUtil::KeyType | _keyType |
| char * | _description |
| char | _valDescTableName [VAL_DESC_TABLE_NAME_LENGTH+1u] |
| char | _thematicIndexName [THEMATIC_INDEXES_NAME_LENGTH+1u] |
| char | _narrativeTableName [NARRATIVE_TABLE_NAME_LENGTH+1u] |
< VPF table column definition
| ColumnDefinition | ( | VPFFile & | infile | ) |
Construct a VPF table column definition read from the given file. Input file should be "seeked" to beginning of column definition and will end "seeked" one past end of column separator
| infile | input file to read description from |
| ~ColumnDefinition | ( | ) |
Dtor
| bool CheckDefinition | ( | const Check & | colCheck, |
| const bool | colCanBeNULL = false |
||
| ) | const |
Determine if this column definition matches the given column check
| colCheck | column check |
| colCanBeNULL | [optional, defaults to false] true if column can optionally be a NULL data type and pass this check test |
|
inline |
Get the data type of the column
|
inline |
Get description of column
|
inline |
Get the key type for the column
|
inline |
Get the name of the column
|
inline |
Get the narrative table name of the column
|
inline |
Get the number of data elements in the column
|
inline |
Get the thematic indexes name of the column
|
inline |
Get the value description table name of the column
|
inline |
Determine if a valid column definition was read
|
protected |
Read the number of elements and populate _numElements accordingly. _numElements gets -1 if variable length is indicated. Input file should be "seeked" to num elements field and will end "seeked" one past column def delimiter
| infile | input file to read number of elements |
|
protected |
column data type
|
protected |
column description (meaning)
|
protected |
true if a valid definition was read else false
|
protected |
column key type
|
protected |
column name plus one for terminator
|
protected |
narrative table name plus one for terminator
|
protected |
number of elements in column else -1 for variable length
|
protected |
thematic indexes name plus one for terminator
|
protected |
value description table name plus one for terminator