GL Studio C++ Runtime API
|
#include <vpf_util.h>
Classes | |
struct | Coord2DLong |
struct | Coord2DShort |
struct | Coord3DLong |
struct | Coord3DShort |
struct | DateTime |
class | FilePath |
class | PointerArray |
struct | Triplet |
Public Types | |
enum | EndianMode |
enum | DataType { DATA_TYPE_TEXT, DATA_TYPE_TEXT_LATIN, DATA_TYPE_TEXT_FULL_LATIN, DATA_TYPE_TEXT_MULTILINGUAL, DATA_TYPE_SHORT_FLOAT, DATA_TYPE_LONG_FLOAT, DATA_TYPE_SHORT_INTEGER, DATA_TYPE_LONG_INTEGER, DATA_TYPE_2D_COORD_SHORT, DATA_TYPE_2D_COORD_LONG, DATA_TYPE_3D_COORD_SHORT, DATA_TYPE_3D_COORD_LONG, DATA_TYPE_DATE_TIME, DATA_TYPE_NULL, DATA_TYPE_TRIPLET } |
enum | KeyType { KEY_TYPE_PRIMARY, KEY_TYPE_UNIQUE, KEY_TYPE_NON_UNIQUE } |
enum | FeatureType |
enum | SecurityClass |
typedef float | Float32 |
typedef double | Float64 |
typedef unsigned short | UInt16 |
typedef unsigned int | UInt32 |
Static Public Member Functions | |
static UInt32 | DecodeUInt16 (const unsigned char *const intData, const EndianMode srcMode) |
static UInt32 | DecodeUInt32 (const unsigned char *const intData, const EndianMode srcMode) |
static Float32 | DecodeFloat32 (const unsigned char *const floatData, const EndianMode srcMode) |
static Float64 | DecodeFloat64 (const unsigned char *const floatData, const EndianMode srcMode) |
static bool | IsFloat32NULL (const Float32 f) |
static bool | IsFloat64NULL (const Float64 f) |
static bool | IsUInt16NULL (const UInt16 i) |
static bool | IsUInt32NULL (const UInt32 i) |
static bool | IsTextNULL (const char *const txt) |
static void | KillTrailingWS (char *const src) |
static bool | StricmpWS (const char *const s1, const char *const s2) |
static bool | FileExists (const char *const fname) |
static bool | DecodeFeatureType (const char featTypeChar, FeatureType &featType) |
static bool | DecodeSecurityClass (const char securityClassChar, SecurityClass &securityClass) |
Static Public Attributes | |
static const char *const | DHT_NAME |
static const char *const | LAT_NAME |
static const char *const | BROWSE_LIB_NAME |
static const char *const | LHT_NAME |
static const char *const | GRT_NAME |
static const char *const | CAT_NAME |
static const char *const | FCS_NAME |
static const char *const | FCA_NAME |
static const char *const | NRAT_NAME |
static const char *const | CVDT_NAME |
static const char *const | IVDT_NAME |
static const char *const | CND_NAME |
static const char *const | END_NAME |
static const char *const | EDG_NAME |
static const char *const | FAC_NAME |
static const char *const | TXT_NAME |
static const char *const | RNG_NAME |
static const char *const | EBR_NAME |
static const char *const | FBR_NAME |
static const char *const | TILEREF_COV_NAME |
static const char *const | LIBREF_COV_NAME |
static const char *const | LIB_COV_NAME |
static const char *const | TILEREF_AFT_NAME |
static const char *const | LIBREF_LFT_NAME |
static const char *const | POINT_FEATURE_EXT |
static const char *const | LINE_FEATURE_EXT |
static const char *const | AREA_FEATURE_EXT |
static const char *const | TEXT_FEATURE_EXT |
static const char *const | LINE_FEATURE_JOIN_EXT |
static const char *const | AREA_FEATURE_JOIN_EXT |
static const char *const | COMPLEX_FEATURE_EXT |
static const char *const | ID_COLUMN_NAME |
static const char *const | TILE_ID_COLUMN_NAME |
static const char *const | END_ID_COLUMN_NAME |
static const char *const | RIGHT_FACE_COLUMN_NAME |
static const char *const | LEFT_FACE_COLUMN_NAME |
static const char *const | RIGHT_EDGE_COLUMN_NAME |
static const char *const | LEFT_EDGE_COLUMN_NAME |
static const char *const | EDGE_ID_COLUMN_NAME |
static const char *const | TEXT_ID_COLUMN_NAME |
static const char *const | FACC_CODE_COLUMN_NAME |
Protected Types | |
enum | |
enum | |
Static Protected Member Functions | |
static void | SwapTwo (const unsigned char *const src, unsigned char *const dst, const EndianMode srcMode) |
static void | SwapFour (const unsigned char *const src, unsigned char *const dst, const EndianMode srcMode) |
static void | SwapEight (const unsigned char *const src, unsigned char *const dst, const EndianMode srcMode) |
Static Protected Attributes | |
static const EndianMode | _targetEndianMode |
collection of VPF related utility functions, types, and constants
typedef float Float32 |
32-bit floating point
typedef double Float64 |
64-bit floating point
typedef unsigned short UInt16 |
16-bit VPF unsigned integer
typedef unsigned int UInt32 |
32-bit VPF unsigned integer
|
protected |
a NULL UInt16 value
|
protected |
a NULL UInt32 value
enum DataType |
possible VPF data types
Enumerator | |
---|---|
DATA_TYPE_TEXT |
text |
DATA_TYPE_TEXT_LATIN |
text Level 1, Latin 1 - ISO 8859 |
DATA_TYPE_TEXT_FULL_LATIN |
text Level 2, Full Latin - ISO 6937 |
DATA_TYPE_TEXT_MULTILINGUAL |
text Level 3, Multilingual ISO 10646 |
DATA_TYPE_SHORT_FLOAT |
IEEE 784 single precision float 32-bits |
DATA_TYPE_LONG_FLOAT |
IEEE 784 double precision float 64-bits |
DATA_TYPE_SHORT_INTEGER |
16-bit integer |
DATA_TYPE_LONG_INTEGER |
32-bit integer |
DATA_TYPE_2D_COORD_SHORT |
2D coordinate of short float |
DATA_TYPE_2D_COORD_LONG |
2D coordinate of long float |
DATA_TYPE_3D_COORD_SHORT |
3D coordinate of short float |
DATA_TYPE_3D_COORD_LONG |
3D coordinate of long float |
DATA_TYPE_DATE_TIME |
Date and Time |
DATA_TYPE_NULL |
NULL field |
DATA_TYPE_TRIPLET |
Triplet ID |
enum EndianMode |
enum of byte ordering modes
enum FeatureType |
possible VPF feature types
enum KeyType |
enum SecurityClass |
security classifications
|
static |
Decode a feature type character indicator from a VPF table into a feature type
featTypeChar | feature type character indicator |
&featType | [out] gets feature type on success |
|
static |
Construct a Float32 from four bytes of data read from a VPF file, correcting for source and target endian mode as needed.
floatData | four bytes of data |
srcMode | endian mode of floatData |
|
static |
Construct a Float64 from eight bytes of data read from a VPF file, correcting for source and target endian mode as needed.
floatData | eight bytes of data |
srcMode | endian mode of floatData |
|
static |
Decode a security class character indicator from a VPF table into a security class
securityClassChar | security class character indicator |
&securityClass | [out] gets security class on success |
|
static |
Construct an UInt16 from tow bytes of data read from a VPF file, correcting for source and target endian mode as needed.
intData | tow bytes of data |
srcMode | endian mode of intData |
|
static |
Construct an UInt32 from four bytes of data read from a VPF file, correcting for source and target endian mode as needed.
intData | four bytes of data |
srcMode | endian mode of intData |
|
static |
Determine if a file exists
fname | name of file |
|
inlinestatic |
Determine if the given Float32 is a NULL value
f | Float32 in question |
|
inlinestatic |
Determine if the given Float64 is a NULL value
f | Float64 in question |
|
inlinestatic |
Determine if the given text value is a NULL value
txt | text in question |
|
inlinestatic |
Determine if the given UInt16 is NULL value
i | UInt16 in question |
|
inlinestatic |
Determine if the given UInt32 is NULL value
i | UInt32 in question |
|
static |
Kill any trailing white space in the given string
src | string in question |
|
static |
Perform a lower case comparison of the two strings, stopping at the first whitespace character
s1 | first string to compare |
s2 | second string to compare |
|
staticprotected |
Swap (reverse) the given eight byte buffer if its endian mode does not match the mode of the endian mode of the target architecture
src | source data to swap (must be at least 8 bytes long) |
dst | [out] receives potentially swapped data (must be at least 8 bytes long) |
srcMode | endian mode of source data |
|
staticprotected |
Swap (reverse) the given four byte buffer if its endian mode does not match the mode of the endian mode of the target architecture
src | source data to swap (must be at least 4 bytes long) |
dst | [out] receives potentially swapped data (must be at least 4 bytes long) |
srcMode | endian mode of source data |
|
staticprotected |
Swap (reverse) the given two byte buffer if its endian mode does not match the mode of the endian mode of the target architecture
src | source data to swap (must be at least 2 bytes long) |
dst | [out] receives potentially swapped data (must be at least 2 bytes long) |
srcMode | endian mode of source data |
|
staticprotected |
endian mode of target architecture
|
static |
file extension for an area feature table
|
static |
file extension for an area join table
|
static |
name of browse library
|
static |
name of coverage attribute table
|
static |
name of connected node primitive table
|
static |
file extension for a complex feature table
|
static |
name of character value descriptor table
|
static |
name of database header table
|
static |
name of edge bounding rectangle table
|
static |
name of edge primitive table
|
static |
name of edge ID column in a VPF table
|
static |
name of entity node ID column in a VPF table
|
static |
name of entity node primitive table
|
static |
name of face primitive table
|
static |
name of facc code column in a VPF table
|
static |
name of face bounding rectangle table
|
static |
name of feature class attribute table
|
static |
name of feature class schema table
|
static |
name of geographic reference table
|
static |
name of ID column in any VPF table (always first column)
|
static |
name of integer value descriptor table
|
static |
name of library attribute table
|
static |
name of left edge column in a VPF table
|
static |
name of left face column in a VPF table
|
static |
name of library header table
|
static |
name of the library coverage
|
static |
name of the libref coverage
|
static |
name of the libref line feature table
|
static |
file extension for a line feature table
|
static |
file extension for a line join table
|
static |
name of notes related attribute table
|
static |
file extension for a point feature table
|
static |
name of right edge column in a VPF table
|
static |
name of right face column in a VPF table
|
static |
name of ring table
|
static |
file extension for a text feature table
|
static |
name of text ID column in a VPF table
|
static |
name of tile ID column in a VPF table
|
static |
name of the tileref area feature table
|
static |
name of the tileref coverage
|
static |
name of text primitive table