QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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, [email protected]
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#endif
46
47 #include <windows.h>
48 #define STRDUP _strdup
50 #include <windows.h>
51
52#else
53
54 #include <stdint.h>
55 #define SIDX_THREAD __thread
57 #define STRDUP strdup
58#endif
59
60#include <sys/stat.h>
61
62#include "sidx_export.h"
63
64class Item;
65class Index;
66
67typedef enum
68{
73 RT_Fatal = 4
75
83
91
99
100
101#ifdef __cplusplus
102# define IDX_C_START extern "C" {
103# define IDX_C_END }
104#else
105# define IDX_C_START
106# define IDX_C_END
107#endif
108
109typedef Index *IndexH;
112
113
114
115#endif
Definition Index.h:34
Definition SpatialIndex.h:127
Definition Tools.h:308
RTError
Definition sidx_config.h:68
@ RT_Fatal
Definition sidx_config.h:73
@ RT_Debug
Definition sidx_config.h:70
@ RT_None
Definition sidx_config.h:69
@ RT_Warning
Definition sidx_config.h:71
@ RT_Failure
Definition sidx_config.h:72
RTIndexVariant
Definition sidx_config.h:93
@ RT_Quadratic
Definition sidx_config.h:95
@ RT_Star
Definition sidx_config.h:96
@ RT_InvalidIndexVariant
Definition sidx_config.h:97
@ RT_Linear
Definition sidx_config.h:94
Tools::PropertySet * IndexPropertyH
Definition sidx_config.h:111
SpatialIndex::IData * IndexItemH
Definition sidx_config.h:110
RTStorageType
Definition sidx_config.h:85
@ RT_Memory
Definition sidx_config.h:86
@ RT_Disk
Definition sidx_config.h:87
@ RT_InvalidStorageType
Definition sidx_config.h:89
@ RT_Custom
Definition sidx_config.h:88
RTIndexType
Definition sidx_config.h:77
@ RT_MVRTree
Definition sidx_config.h:79
@ RT_InvalidIndexType
Definition sidx_config.h:81
@ RT_TPRTree
Definition sidx_config.h:80
@ RT_RTree
Definition sidx_config.h:78
Index * IndexH
Definition sidx_config.h:109