#include <iostream>
#include <utility>
|
enum | TypeIndices {
iBYTE,
iUBYTE,
iCHAR,
iSHORT,
iUSHORT,
iINT,
iUINT,
iLong,
iUlong,
iFLOAT,
iDOUBLE,
iINT64,
iUINT64,
iSTRING,
iLAST
} |
|
Enumerator |
---|
iBYTE |
|
iUBYTE |
|
iCHAR |
|
iSHORT |
|
iUSHORT |
|
iINT |
|
iUINT |
|
iLong |
|
iUlong |
|
iFLOAT |
|
iDOUBLE |
|
iINT64 |
|
iUINT64 |
|
iSTRING |
|
iLAST |
|
void DisplayOneTypeSize |
( |
std::ostream & |
os, |
|
|
TypeIndices const |
i |
|
) |
| |
std::string MakeSep |
( |
std::string const |
str | ) |
|
char const* const ncTypeNames[] |
Initial value:=
{
"NC_BYTE",
"NC_UBYTE",
"NC_CHAR",
"NC_SHORT",
"NC_USHORT",
"NC_INT",
"NC_UINT",
"NC_INT",
"NC_UINT",
"NC_FLOAT",
"NC_DOUBLE",
"NC_INT64",
"NC_UINT64",
"NC_STRING",
0
}
char const* const stdTypeNames[] |
Initial value:=
{
"signed char",
"unsigned char",
"char",
"short",
"unsigned short",
"int",
"unsigned int",
"long",
"unsigned long",
"float",
"double",
"long long",
"unsigned long long",
"char**",
0
}
char const* const typeDescrips[] |
Initial value:=
{
"signed 1 byte integer",
"unsigned 1 byte integer",
"ISO/ASCII character",
"signed short integer",
"unsigned short integer",
"signed integer",
"unsigned integer",
"signed long integer",
"unsigned long integer",
"single precision floating point number",
"double precision floating point number",
"signed 8-byte integer",
"unsigned 8-byte integer",
"pointer to C string",
0
}
std::size_t const typeSizes[] |
Initial value:=
{
sizeof( long ),
sizeof( unsigned long ),
0
}
double ncDOUBLE
Definition: DisplayTypeSizes.cpp:19
char ** ncSTRING
Definition: DisplayTypeSizes.cpp:22
long long ncINT64
Definition: DisplayTypeSizes.cpp:20
unsigned short ncUSHORT
Definition: DisplayTypeSizes.cpp:15
signed char ncBYTE
Definition: DisplayTypeSizes.cpp:11
float ncFLOAT
Definition: DisplayTypeSizes.cpp:18
short ncSHORT
Definition: DisplayTypeSizes.cpp:14
char ncCHAR
Definition: DisplayTypeSizes.cpp:13
unsigned char ncUBYTE
Definition: DisplayTypeSizes.cpp:12
int ncINT
Definition: DisplayTypeSizes.cpp:16
unsigned int ncUINT
Definition: DisplayTypeSizes.cpp:17
unsigned long long ncUINT64
Definition: DisplayTypeSizes.cpp:21