MrSID Decode SDK for LiDAR Reference Manual  1.1.5.5244
Base.h
Go to the documentation of this file.
1 //
2 // This code is property of Celartem, Inc dba Extensis.
3 // Copyright (c) 1995-2023. All rights reserved.
4 // Use permitted only under license from Extensis.
5 //
6 /* PUBLIC */
7 
8 #ifndef __LIDAR_BASE_H__
9 #define __LIDAR_BASE_H__
10 
11 /* this should be a vaild C header file */
12 
13 #include <stddef.h>
14 
15 /* Notes on data types */
16 
17 /* use size_t and ptrdiff_t when dealing memory sizes and offsets */
18 /* use IO::offset_type when dealing with file sizes and offsets */
19 
20 /* use the following types when reading and writing persistent data */
21 
23 typedef signed char lt_int8;
25 typedef unsigned char lt_uint8;
27 typedef signed short lt_int16;
29 typedef unsigned short lt_uint16;
31 typedef signed int lt_int32;
33 typedef unsigned int lt_uint32;
34 
35 #if defined(_MSC_VER)
37  typedef signed __int64 lt_int64;
39  typedef unsigned __int64 lt_uint64;
40 #else
42  typedef long long int lt_int64;
44  typedef unsigned long long int lt_uint64;
45 #endif
46 
47 #ifdef __cplusplus
48 
49 /* namespace macros */
50 #define LT_BEGIN_LIDAR_NAMESPACE namespace LizardTech {
51 #define LT_END_LIDAR_NAMESPACE }
52 #define LT_USE_LIDAR_NAMESPACE using namespace LizardTech;
53 
54 LT_BEGIN_LIDAR_NAMESPACE
55 
56 void *XALLOC(size_t size);
57 void *XREALLOC(void *ptr, size_t size);
58 void XDEALLOC(void *ptr);
59 
60 /* Macro for disabling copy construtor and assignment opterator */
61 
62 #define DISABLE_COPY(classname) \
63  private: \
64  classname(const classname &); \
65  classname &operator=(const classname &)
66 
67 #define SIMPLE_OBJECT(classname) \
68  DISABLE_COPY(classname)
69 
70 LT_END_LIDAR_NAMESPACE
71 
72 #endif /* __cplusplus */
73 
74 #ifdef __cplusplus
75 #define LT_BEGIN_C_NAMESPACE extern "C" {
76 #define LT_END_C_NAMESPACE };
77 #else
78 #define LT_BEGIN_C_NAMESPACE
79 #define LT_END_C_NAMESPACE
80 #endif
81 
82 #endif /* __LIDAR_BASE_H__ */
unsigned short lt_uint16
unsigned 16-bit integer
Definition: Base.h:29
signed char lt_int8
signed 8-bit integer
Definition: Base.h:23
unsigned long long int lt_uint64
unsigned 64-bit integer
Definition: Base.h:44
unsigned char lt_uint8
unsigned 8-bit integer
Definition: Base.h:25
signed short lt_int16
signed 16-bit integer
Definition: Base.h:27
unsigned int lt_uint32
unsigned 32-bit integer
Definition: Base.h:33
long long int lt_int64
signed 64-bit integer
Definition: Base.h:42
signed int lt_int32
signed 32-bit integer
Definition: Base.h:31

Extensis