00001
00002
00003
00004
00005
00006
00007
00008
00010
00011
00012 #ifndef __LIDAR_BASE_H__
00013 #define __LIDAR_BASE_H__
00014
00015
00016
00017 #include <stddef.h>
00018
00019
00020
00021
00022
00023
00024
00025
00027 typedef signed char lt_int8;
00029 typedef unsigned char lt_uint8;
00031 typedef signed short lt_int16;
00033 typedef unsigned short lt_uint16;
00035 typedef signed int lt_int32;
00037 typedef unsigned int lt_uint32;
00038
00039 #if defined(_MSC_VER)
00040
00041 typedef signed __int64 lt_int64;
00043 typedef unsigned __int64 lt_uint64;
00044 #else
00045
00046 typedef long long int lt_int64;
00048 typedef unsigned long long int lt_uint64;
00049 #endif
00050
00051 #ifdef __cplusplus
00052
00053
00054 #define LT_BEGIN_LIDAR_NAMESPACE namespace LizardTech {
00055 #define LT_END_LIDAR_NAMESPACE }
00056 #define LT_USE_LIDAR_NAMESPACE using namespace LizardTech;
00057
00058 LT_BEGIN_LIDAR_NAMESPACE
00059
00060 void *XALLOC(size_t size);
00061 void *XREALLOC(void *ptr, size_t size);
00062 void XDEALLOC(void *ptr);
00063
00064
00065
00066 #define DISABLE_COPY(classname) \
00067 private: \
00068 classname(const classname &); \
00069 classname &operator=(const classname &)
00070
00071 #define SIMPLE_OBJECT(classname) \
00072 DISABLE_COPY(classname)
00073
00074 LT_END_LIDAR_NAMESPACE
00075
00076 #endif
00077
00078 #ifdef __cplusplus
00079 #define LT_BEGIN_C_NAMESPACE extern "C" {
00080 #define LT_END_C_NAMESPACE };
00081 #else
00082 #define LT_BEGIN_C_NAMESPACE
00083 #define LT_END_C_NAMESPACE
00084 #endif
00085
00086 #endif