Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __igtlTypes_H
00018 #define __igtlTypes_H
00019
00020 #include "igtlTypeConfig.h"
00021
00022
00023 #if IGTL_SIZEOF_CHAR == 1
00024 typedef unsigned char igtlUint8;
00025 typedef char igtlInt8;
00026 #else
00027 # error "No native data type can represent an 8-bit integer."
00028 #endif
00029
00030
00031 #if IGTL_SIZEOF_SHORT == 2
00032 typedef unsigned short igtlUint16;
00033 typedef signed short igtlInt16;
00034 #elif IGTL_SIZEOF_INT == 2
00035 typedef unsigned int igtlUint16;
00036 typedef signed int igtlInt16;
00037 #else
00038 # error "No native data type can represent a 16-bit integer."
00039 #endif
00040
00041
00042 #if IGTL_SIZEOF_INT == 4
00043 typedef unsigned int igtlUint32;
00044 typedef signed int igtlInt32;
00045 #elif IGTL_SIZEOF_LONG == 4
00046 typedef unsigned long igtlUint32;
00047 typedef signed long igtlInt32;
00048 #else
00049 # error "No native data type can represent a 32-bit integer."
00050 #endif
00051
00052
00053 #if defined(IGTL_TYPE_USE_LONG_LONG) && IGTL_SIZEOF_LONG_LONG == 8
00054 typedef unsigned long long igtlUint64;
00055 typedef signed long long igtlInt64;
00056 #elif IGTL_SIZEOF_INT == 8
00057 typedef unsigned int igtlUint64;
00058 typedef signed int igtlInt64;
00059 #elif IGTL_SIZEOF_LONG == 8
00060 typedef unsigned long igtlUint64;
00061 typedef signed long igtlInt64;
00062 #elif defined(IGTL_TYPE_USE___INT64) && IGTL_SIZEOF___INT64 == 8
00063 typedef unsigned __int64 igtlUint64;
00064 typedef signed __int64 igtlInt64;
00065 #elif defined(IGTL_TYPE_USE_INT64_T) && IGTL_SIZEOF_INT64_T == 8
00066 typedef unsigned int64_t igtlUint64;
00067 typedef signed int64_t igtlInt64;
00068 #else
00069 # error "No native data type can represent a 64-bit integer."
00070 #endif
00071
00072
00073 #if IGTL_SIZEOF_FLOAT == 4
00074 typedef float igtlFloat32;
00075 #else
00076 # error "No native data type can represent a 32-bit floating point value."
00077 #endif
00078
00079
00080 #if IGTL_SIZEOF_DOUBLE == 8
00081 typedef double igtlFloat64;
00082 #else
00083 # error "No native data type can represent a 64-bit floating point value."
00084 #endif
00085
00086
00087 typedef double igtlComplex[2];
00088
00089
00090 #endif
00091