libspatialindex API Reference
(git-trunk)
sidx_config.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Project: libsidx - A C API wrapper around libspatialindex
3
* Purpose: C API configuration
4
* Author: Howard Butler, hobu.inc@gmail.com
5
******************************************************************************
6
* Copyright (c) 2009, Howard Butler
7
*
8
* All rights reserved.
9
*
10
* Permission is hereby granted, free of charge, to any person obtaining a
11
* copy of this software and associated documentation files (the "Software"),
12
* to deal in the Software without restriction, including without limitation
13
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
* and/or sell copies of the Software, and to permit persons to whom the
15
* Software is furnished to do so, subject to the following conditions:
16
*
17
* The above copyright notice and this permission notice shall be included
18
* in all copies or substantial portions of the Software.
19
*
20
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
* DEALINGS IN THE SOFTWARE.
27
******************************************************************************/
28
29
#ifndef SIDX_CONFIG_H_INCLUDED
30
#define SIDX_CONFIG_H_INCLUDED
31
32
33
34
#ifdef _MSC_VER
35
36
#if _MSC_VER <= 1500
37
typedef
__int8 int8_t;
38
typedef
__int16 int16_t;
39
typedef
__int32 int32_t;
40
typedef
__int64 int64_t;
41
typedef
unsigned
__int8 uint8_t;
42
typedef
unsigned
__int16 uint16_t;
43
typedef
unsigned
__int32 uint32_t;
44
typedef
unsigned
__int64 uint64_t;
45
#else
46
#include <stdint.h>
47
#endif
48
49
#include <windows.h>
50
#define STRDUP _strdup
51
#include <windows.h>
52
53
#else
54
55
#include <stdint.h>
56
#define SIDX_THREAD __thread
57
#define STRDUP strdup
58
#endif
59
60
#include <sys/stat.h>
61
62
#include "
sidx_export.h
"
63
64
typedef
enum
65
{
66
RT_None
= 0,
67
RT_Debug
= 1,
68
RT_Warning
= 2,
69
RT_Failure
= 3,
70
RT_Fatal
= 4
71
}
RTError
;
72
73
typedef
enum
74
{
75
RT_RTree
= 0,
76
RT_MVRTree
= 1,
77
RT_TPRTree
= 2,
78
RT_InvalidIndexType
= -99
79
}
RTIndexType
;
80
81
typedef
enum
82
{
83
RT_Memory
= 0,
84
RT_Disk
= 1,
85
RT_Custom
= 2,
86
RT_InvalidStorageType
= -99
87
}
RTStorageType
;
88
89
typedef
enum
90
{
91
RT_Linear
= 0,
92
RT_Quadratic
= 1,
93
RT_Star
= 2,
94
RT_InvalidIndexVariant
= -99
95
}
RTIndexVariant
;
96
97
98
#ifdef __cplusplus
99
# define IDX_C_START extern "C"
{
100
# define IDX_C_END }
101
#else
102
# define IDX_C_START
103
# define IDX_C_END
104
#endif
105
106
typedef
struct
IndexS *
IndexH
;
107
typedef
struct
SpatialIndex_IData *
IndexItemH
;
108
typedef
struct
Tools_PropertySet *
IndexPropertyH
;
109
110
111
112
#endif
RTError
RTError
Definition:
sidx_config.h:65
RT_Fatal
@ RT_Fatal
Definition:
sidx_config.h:70
RT_Debug
@ RT_Debug
Definition:
sidx_config.h:67
RT_None
@ RT_None
Definition:
sidx_config.h:66
RT_Warning
@ RT_Warning
Definition:
sidx_config.h:68
RT_Failure
@ RT_Failure
Definition:
sidx_config.h:69
IndexItemH
struct SpatialIndex_IData * IndexItemH
Definition:
sidx_config.h:107
RTIndexVariant
RTIndexVariant
Definition:
sidx_config.h:90
RT_Quadratic
@ RT_Quadratic
Definition:
sidx_config.h:92
RT_Star
@ RT_Star
Definition:
sidx_config.h:93
RT_InvalidIndexVariant
@ RT_InvalidIndexVariant
Definition:
sidx_config.h:94
RT_Linear
@ RT_Linear
Definition:
sidx_config.h:91
IndexPropertyH
struct Tools_PropertySet * IndexPropertyH
Definition:
sidx_config.h:108
RTStorageType
RTStorageType
Definition:
sidx_config.h:82
RT_Memory
@ RT_Memory
Definition:
sidx_config.h:83
RT_Disk
@ RT_Disk
Definition:
sidx_config.h:84
RT_InvalidStorageType
@ RT_InvalidStorageType
Definition:
sidx_config.h:86
RT_Custom
@ RT_Custom
Definition:
sidx_config.h:85
RTIndexType
RTIndexType
Definition:
sidx_config.h:74
RT_MVRTree
@ RT_MVRTree
Definition:
sidx_config.h:76
RT_InvalidIndexType
@ RT_InvalidIndexType
Definition:
sidx_config.h:78
RT_TPRTree
@ RT_TPRTree
Definition:
sidx_config.h:77
RT_RTree
@ RT_RTree
Definition:
sidx_config.h:75
IndexH
struct IndexS * IndexH
Definition:
sidx_config.h:106
sidx_export.h
include
spatialindex
capi
sidx_config.h
Generated on Wed May 15 2024 14:34:36 for libspatialindex API Reference by
1.9.1