30 #ifndef GENICAM_TYPES_H 31 #define GENICAM_TYPES_H 36 #if defined (_WIN32) && !defined(WIN32) 42 # ifndef __STDC_LIMIT_MACROS 43 # define __STDC_LIMIT_MACROS 46 # ifndef __STDC_CONSTANT_MACROS 47 # define __STDC_CONSTANT_MACROS 52 # include <inttypes.h> 56 #elif defined (_WIN32) 63 # if defined(_M_IX86) && _MSC_VER >= 1300 70 # if defined(_MSC_VER) && _MSC_VER >= 1600 74 # ifndef _STDINT // only define if not already done 79 typedef unsigned char uint8_t;
82 typedef short int16_t;
84 typedef unsigned short uint16_t;
87 typedef __int32 int32_t;
89 typedef unsigned __int32 uint32_t;
94 typedef unsigned __int64 uint64_t;
97 # endif // _MSC_VER >= 1600 106 typedef __int64 int_t;
108 typedef unsigned __int64 uint_t;
110 # ifndef _SIZE_T_DEFINED 112 typedef unsigned __int64 size_t;
115 typedef GC_W64
unsigned int size_t;
118 # define _SIZE_T_DEFINED 121 # ifndef _INTPTR_T_DEFINED 123 typedef __int64 intptr_t;
126 typedef GC_W64
int intptr_t;
129 # define _INTPTR_T_DEFINED 132 # ifndef _UINTPTR_T_DEFINED 134 typedef unsigned __int64 uintptr_t;
137 typedef GC_W64
unsigned int uintptr_t;
140 # define _UINTPTR_T_DEFINED 144 # error No platform-specific type definitions 152 # define GC_INT64_MAX INT64_MAX 154 # define GC_INT64_MAX static_cast<int64_t>(0x7fffffffffffffffLL) 156 #endif // GC_INT64_MAX 160 # define GC_INT64_MIN INT64_MIN 162 # define GC_INT64_MIN static_cast<int64_t>(0x8000000000000000LL) 164 #endif // GC_INT64_MIN 166 #ifndef GC_UINT64_MAX 168 # define GC_UINT64_MAX UINT64_MAX 170 # define GC_UINT64_MAX static_cast<uint64_t>(0xffffffffffffffffULL) 172 #endif // GC_UINT64_MAX 176 # define GC_INT32_MAX INT32_MAX 178 # define GC_INT32_MAX static_cast<int64_t>(0x000000007fffffffLL) 180 #endif // GC_INT32_MAX 184 # define GC_INT32_MIN INT32_MIN 186 # define GC_INT32_MIN static_cast<int64_t>(0xffffffff80000000LL) 188 #endif // GC_INT32_MIN 190 #ifndef GC_UINT32_MAX 192 # define GC_UINT32_MAX UINT32_MAX 194 # define GC_UINT32_MAX static_cast<uint64_t>(0x00000000ffffffffULL) 196 #endif // GC_UINT32_MAX 200 # define GC_INT8_MAX INT8_MAX 202 # define GC_INT8_MAX static_cast<int64_t>(0x000000000000007fLL) 204 #endif // GC_INT8_MAX 208 # define GC_INT8_MIN INT8_MIN 210 # define GC_INT8_MIN static_cast<int64_t>(0xffffffffffffff80LL) 212 #endif // GC_INT8_MIN 216 # define GC_UINT8_MAX UINT8_MAX 218 # define GC_UINT8_MAX static_cast<uint64_t>(0x00000000000000ffULL) 220 #endif // GC_UINT8_MAX 242 #if defined(_MSC_VER) 243 # ifdef GCBASE_EXPORTS 244 # define GCBASE_API __declspec( dllexport ) 245 # define GCBASE_RTTI_CLASS_API __declspec( dllexport ) 247 # define GCBASE_API __declspec( dllimport ) 248 # define GCBASE_RTTI_CLASS_API __declspec( dllimport ) 250 #elif defined (__GNUC__) 251 # ifdef GCBASE_EXPORTS 252 # define GCBASE_API __attribute__((visibility("default"))) 253 # define GCBASE_RTTI_CLASS_API __attribute__((visibility("default"))) 258 # define GCBASE_RTTI_CLASS_API __attribute__((visibility("default"))) 261 # error Unsupported compiler or platform 278 #if defined(_MSC_VER) 279 # define GC_UNUSED(unused_var) (void)(unused_var) 280 #elif defined(__GNUC__) 281 # define GC_UNUSED(unused_var) // no changes to unused params with GCC 283 # error Unsupported compiler or platform 287 #endif // GENICAM_TYPES_H
double float64_t
64 bit floating point
GenICam versioned namespace.
float float32_t
32 bit floating point
uint16_t SubMinor
a is incompatible b a > b
uint16_t Minor
a is incompatible with b if a != b