47 #if !defined( _WIN32 )
51 #if defined( DISTI_VPF_DEBUG )
53 #endif // DISTI_VPF_DEBUG
56 #if defined( DISTI_VPF_DEBUG )
58 # if defined( _WIN32 )
59 # if defined( GLS_DEBUG )
61 # define DistiVPFAssert( _expr ) assert( ( _expr ) )
64 # define DistiVPFAssert( _expr ) \
72 # define DistiVPFAssert( _expr ) assert( ( _expr ) )
76 # define DistiVPFAssert( _expr )
77 #endif // DISTI_VPF_DEBUG
129 FACC_CODE_LENGTH = 5u
185 SECURITY_CLASS_TOP_SECRET,
186 SECURITY_CLASS_SECRET,
187 SECURITY_CLASS_CONFIDENTIAL,
188 SECURITY_CLASS_RESTRICTED,
189 SECURITY_CLASS_UNCLASSIFIED
223 bool externalIDValid;
234 DATE_TIME_LENGTH = 20u
240 #if defined( DISTI_VPF_DEBUG )
248 WarningBool(
const bool initialVal )
256 WarningBool& operator=(
const bool val );
261 operator bool(
void )
const {
return ( _val ); }
267 typedef bool WarningBool;
268 #endif // DISTI_VPF_DEBUG
278 DEFAULT_INITIAL_SIZE = 16u
307 for(
unsigned int index = 0u; index <
_arrayCount; ++index )
325 bool success = (
_isValid && ( NULL != p ) );
333 const unsigned int newArraySize = ( 2u *
_arraySize );
334 T** newArray = (T**)realloc(
_pointers,
sizeof( T* ) * newArraySize );
335 _isValid = success = ( NULL != newArray );
340 memset( &( newArray[
_arraySize ] ), 0,
sizeof( T* ) * _arraySize );
343 _arraySize = newArraySize;
364 bool MovePointer(
const unsigned int curIndex,
const unsigned int newIndex )
375 for(
unsigned int index = ( curIndex + 1u ); index <
_arrayCount; ++index )
383 for(
unsigned int index = (
_arrayCount - 1u ); index > newIndex; --index )
453 FilePath(
const char*
const path,
const bool isDirectory );
462 const char*
Append(
const char*
const name,
const bool isDirectory,
const bool forceUpperCase =
true,
463 const bool killTrailingWS =
true );
479 MAX_PATH_LENGTH = 512
529 return ( 0 != _isnan( f ) );
531 return ( 0 != isnan( f ) );
542 return ( 0 != _isnan( f ) );
544 return ( 0 != isnan( f ) );
552 static bool IsUInt16NULL(
const UInt16 i ) {
return ( UINT16_NULL_VALUE == i ); }
558 static bool IsUInt32NULL(
const UInt32 i ) {
return ( UINT32_NULL_VALUE == i ); }
579 static bool StricmpWS(
const char*
const s1,
const char*
const s2 );
585 static bool FileExists(
const char*
const fname );
605 UINT16_NULL_VALUE = 0x8000u
610 UINT32_NULL_VALUE = 0x80000000U
621 static void SwapTwo(
const unsigned char*
const src,
unsigned char*
const dst,
const EndianMode srcMode );
629 static void SwapFour(
const unsigned char*
const src,
unsigned char*
const dst,
const EndianMode srcMode );
637 static void SwapEight(
const unsigned char*
const src,
unsigned char*
const dst,
const EndianMode srcMode );
642 #endif // _VPF_UTIL_H
static bool DecodeSecurityClass(const char securityClassChar, SecurityClass &securityClass)
static const char *const FACC_CODE_COLUMN_NAME
Definition: vpf_util.h:125
unsigned int GetCount(void) const
Definition: vpf_util.h:399
Definition: vpf_util.h:217
Definition: vpf_util.h:151
static const char *const CAT_NAME
Definition: vpf_util.h:90
Definition: vpf_util.h:147
unsigned int UInt32
Definition: vpf_util.h:135
static void KillTrailingWS(char *const src)
static const char *const AREA_FEATURE_EXT
Definition: vpf_util.h:111
static Float32 DecodeFloat32(const unsigned char *const floatData, const EndianMode srcMode)
static const char *const LIBREF_LFT_NAME
Definition: vpf_util.h:108
static const char *const FBR_NAME
Definition: vpf_util.h:103
Definition: vpf_util.h:230
char dateStr[DATE_TIME_LENGTH+1u]
Definition: vpf_util.h:237
static const char *const FCA_NAME
Definition: vpf_util.h:92
static const char *const NRAT_NAME
Definition: vpf_util.h:93
static bool IsFloat64NULL(const Float64 f)
Definition: vpf_util.h:539
Definition: vpf_util.h:159
FeatureType
Definition: vpf_util.h:173
unsigned short UInt16
Definition: vpf_util.h:134
static bool FileExists(const char *const fname)
static const char *const EBR_NAME
Definition: vpf_util.h:102
static bool IsUInt16NULL(const UInt16 i)
Definition: vpf_util.h:552
Definition: vpf_util.h:161
static const char *const EDGE_ID_COLUMN_NAME
Definition: vpf_util.h:123
T * GetPointer(const unsigned int index)
Definition: vpf_util.h:405
static const char *const DHT_NAME
Definition: vpf_util.h:85
bool IsValid(void) const
Definition: vpf_util.h:468
static bool DecodeFeatureType(const char featTypeChar, FeatureType &featType)
static const char *const TILEREF_AFT_NAME
Definition: vpf_util.h:107
unsigned int _arrayCount
Definition: vpf_util.h:427
static const char *const ID_COLUMN_NAME
Definition: vpf_util.h:116
Definition: vpf_util.h:149
static const char DIR_SEPARATOR
Definition: vpf_util.h:441
Definition: vpf_util.h:437
static const char *const RNG_NAME
Definition: vpf_util.h:101
Definition: vpf_util.h:154
static const char *const FCS_NAME
Definition: vpf_util.h:91
Definition: vpf_util.h:199
static const char *const COMPLEX_FEATURE_EXT
Definition: vpf_util.h:115
static const EndianMode _targetEndianMode
Definition: vpf_util.h:613
bool MovePointer(const unsigned int curIndex, const unsigned int newIndex)
Definition: vpf_util.h:364
static const char *const EDG_NAME
Definition: vpf_util.h:98
WarningBool _isValid
Definition: vpf_util.h:425
static const char *const AREA_FEATURE_JOIN_EXT
Definition: vpf_util.h:114
static Float64 DecodeFloat64(const unsigned char *const floatData, const EndianMode srcMode)
static const char *const END_ID_COLUMN_NAME
Definition: vpf_util.h:118
static const char *const FAC_NAME
Definition: vpf_util.h:99
const T * GetPointer(const unsigned int index) const
Definition: vpf_util.h:414
T ** _pointers
Definition: vpf_util.h:428
Definition: vpf_util.h:169
KeyType
Definition: vpf_util.h:165
static const char *const LAT_NAME
Definition: vpf_util.h:86
double Float64
Definition: vpf_util.h:133
DataType
Definition: vpf_util.h:145
Definition: vpf_util.h:152
static void SwapFour(const unsigned char *const src, unsigned char *const dst, const EndianMode srcMode)
Definition: vpf_util.h:158
Definition: vpf_util.h:153
static const char *const POINT_FEATURE_EXT
Definition: vpf_util.h:109
static const char *const IVDT_NAME
Definition: vpf_util.h:95
const char * GetFilePath(void) const
Definition: vpf_util.h:473
Definition: vpf_util.h:148
static const char *const TEXT_ID_COLUMN_NAME
Definition: vpf_util.h:124
static const char *const BROWSE_LIB_NAME
Definition: vpf_util.h:87
bool IsValid(void) const
Definition: vpf_util.h:422
static bool IsTextNULL(const char *const txt)
Definition: vpf_util.h:564
~PointerArray()
Definition: vpf_util.h:302
static const char *const LIBREF_COV_NAME
Definition: vpf_util.h:105
Definition: vpf_util.h:157
static const char *const TILE_ID_COLUMN_NAME
Definition: vpf_util.h:117
static const char *const RIGHT_FACE_COLUMN_NAME
Definition: vpf_util.h:119
static void SwapEight(const unsigned char *const src, unsigned char *const dst, const EndianMode srcMode)
Definition: vpf_util.h:193
static void SwapTwo(const unsigned char *const src, unsigned char *const dst, const EndianMode srcMode)
static UInt32 DecodeUInt16(const unsigned char *const intData, const EndianMode srcMode)
Definition: vpf_util.h:160
float Float32
Definition: vpf_util.h:132
char _pathStr[MAX_PATH_LENGTH+1u]
Definition: vpf_util.h:483
static const char *const LINE_FEATURE_EXT
Definition: vpf_util.h:110
static const char *const GRT_NAME
Definition: vpf_util.h:89
SecurityClass
Definition: vpf_util.h:183
Definition: vpf_util.h:167
static bool StricmpWS(const char *const s1, const char *const s2)
unsigned int _arraySize
Definition: vpf_util.h:426
Definition: vpf_util.h:155
static const char *const END_NAME
Definition: vpf_util.h:97
Definition: vpf_util.h:272
Definition: vpf_util.h:150
static const char *const TXT_NAME
Definition: vpf_util.h:100
Definition: vpf_util.h:211
static const char *const TEXT_FEATURE_EXT
Definition: vpf_util.h:112
Definition: vpf_util.h:168
static bool IsFloat32NULL(const Float32 f)
Definition: vpf_util.h:526
Definition: vpf_util.h:82
WarningBool _isValid
Definition: vpf_util.h:482
static bool IsUInt32NULL(const UInt32 i)
Definition: vpf_util.h:558
Definition: vpf_util.h:205
static const char *const LINE_FEATURE_JOIN_EXT
Definition: vpf_util.h:113
static const char *const LHT_NAME
Definition: vpf_util.h:88
static const char *const CND_NAME
Definition: vpf_util.h:96
static const char *const LEFT_EDGE_COLUMN_NAME
Definition: vpf_util.h:122
EndianMode
Definition: vpf_util.h:138
static const char *const CVDT_NAME
Definition: vpf_util.h:94
static const char *const LEFT_FACE_COLUMN_NAME
Definition: vpf_util.h:120
static const char *const TILEREF_COV_NAME
Definition: vpf_util.h:104
const char * Append(const char *const name, const bool isDirectory, const bool forceUpperCase=true, const bool killTrailingWS=true)
PointerArray(const unsigned int initialSize=DEFAULT_INITIAL_SIZE)
Definition: vpf_util.h:284
Definition: bmpimage.h:46
static const char *const RIGHT_EDGE_COLUMN_NAME
Definition: vpf_util.h:121
static const char *const LIB_COV_NAME
Definition: vpf_util.h:106
static UInt32 DecodeUInt32(const unsigned char *const intData, const EndianMode srcMode)
bool InsertPointer(T *const p)
Definition: vpf_util.h:323
Definition: vpf_util.h:156