Main Page   Class Hierarchy   Compound List   File List   Compound Members  

config.h

00001 //-< CONFIG.H >------------------------------------------------------*--------*
00002 // GigaBASE                  Version 1.0         (c) 1999  GARRET    *     ?  *
00003 // (Post Relational Database Management System)                      *   /\|  *
00004 //                                                                   *  /  \  *
00005 //                          Created:     21-Jan-2004  K.A. Knizhnik  * / [] \ *
00006 //                          Last update: 21-Jan-2004  K.A. Knizhnik  * GARRET *
00007 //-------------------------------------------------------------------*--------*
00008 // GigaBASE configuration definitions
00009 //-------------------------------------------------------------------*--------*
00010 
00011 #ifndef __CONFIG_H__
00012 #define __CONFIG_H__
00013 
00014 // Use configuration file generated by configure script
00015 #include "confdefs.h"
00016 
00017 #ifndef AUTOCONFIG
00018 
00019 // USE_LOCALE_SETTINGS - use C locale for string comparison operations
00020 #ifndef _WIN32_WCE
00021 #define USE_LOCALE_SETTINGS 1
00022 #endif
00023 
00024 // GIGABASE_DEBUG - debug level
00025 //    - DEBUG_NONE - disable any checking and tracing (except asserts)
00026 //    - DEBUG_CHECK - disable trace message
00027 //    - DEBUG_TRACE - enable trace messages 
00028 //#define GIGABASE_DEBUG DEBUG_TRACE
00029 
00030 // USE_NAMESPACES - place GigaBASE classes in separate namespace  
00031 //#define USE_NAMESPACES 1
00032 
00033 
00034 // SECURE_SERVER - enable authentication for remote logins: keep user/password table, 
00035 //   check password for remote logins
00036 //#define SECURE_SERVER 1
00037 
00038 // USE_QUEUE_MANAGER - use queue manager for internal HTTP server. 
00039 //   This manager will manage pool of threads assigned for client connections. 
00040 //   Otherwise all requests will be executed sequnetially in the main loop.
00041 //#define USE_QUEUE_MANAGER 1
00042 
00043 
00044 // GIGABASE_DLL - create gigabase.dll
00045 //#define GIGABASE_DLL 1
00046 
00047 
00048 // THROW_EXCEPTION_ON_ERROR - throw C++ exception in case of database error instead of abort()
00049 #ifndef _WINCE
00050 #define THROW_EXCEPTION_ON_ERROR 1
00051 #endif
00052 
00053 //UNICODE - use wide character strings
00054 //#define UNICODE 1
00055 
00056 #if defined(_UNICODE) && !defined(UNICODE)
00057 #define UNICODE
00058 #endif
00059 
00060 
00061 //USE_STD_STRING - accept std::string class as table field type
00062 #ifdef _WIN32
00063 #define USE_STD_STRING 1
00064 #endif
00065 
00066 //AUTOINCREMENT_SUPPORT - support autoincrement fields 
00067 //  (database built with this flag will be incompatible with database built without it)
00068 #define AUTOINCREMENT_SUPPORT 1
00069 
00070 //CLONE_IDENTIFIERS - do not storef addresses of string constants in symbol table.
00071 //  This option is needed if DLL library using GigaBASE can be unloaded.
00072 //#define CLONE_IDENTIFIERS 1 
00073 
00074 // RECTANGLE_DIMENSION - dimension of built-in rectangle type
00075 #define RECTANGLE_DIMENSION 2
00076 
00077 // RECTANGLE_COORDINATE_TYPE - type of rectanlge's coordinates
00078 #define RECTANGLE_COORDINATE_TYPE int
00079 //#define RECTANGLE_COORDINATE_TYPE double
00080 
00081 // RECTANGLE_AREA_TYPE - type of rectanlge's area
00082 #define RECTANGLE_AREA_TYPE db_int8
00083 //#define RECTANGLE_AREA_TYPE double
00084 
00085 //SET_NULL_DACL - use NULL DACL security descriptor for all synchronization objects.
00086 //#define SET_NULL_DACL 1
00087 
00088 //INT8_IS_DEFINED - int8 type is defined at your system, in this case you should use db_int8 type instead
00089 //#define INT8_IS_DEFINED 1
00090 
00091 //USE_MFC - use MFC (include "afx.h" instead of "windows.h")
00092 //#define USE_MFC 1
00093 
00094 //USE_ATL - use Microsoft ATL 
00095 //#define USE_ATL 1
00096 
00097 //USE_MFC_STRING - accept MVC CString class as table field type
00098 //#define USE_MFC_STRING
00099 
00100 
00101 // LARGE_DATABASE_SUPPORT - support databases with size larger than 4Gb.
00102 // If this macro is defined GigaBASE maximal database size is limited by 1 terrabyte.
00103 // Defnining this macro increase iniitial database size and object index size (because
00104 // 64-bit offsetss are used instead fo 4-byte offsets). Also GigaBASE library compiled with 
00105 // LARGE_DATABASE_SUPPOR will not be able to work with database created by library
00106 // built without LARGE_DATABASE_SUPPOR and visa versa. 
00107 //#define LARGE_DATABASE_SUPPORT 
00108 
00109 // dbDatabaseOidBits number of bits used to represent object identifier. 
00110 // So the number of objects in database is limited by 2**dbDatabaseOidBits.
00111 // Default value of this parameter is 32, so maximal number of objects is limited by 2**32.
00112 // The value of this parameter is used to estimate size of bitmap, so do not assign unnecessarily 
00113 // large values (for example 64)
00114 //#define dbDatabaseOidBits 33
00115 
00116 // SPARSE_FILE_OPTIMIZATION use optimization of sparse files at Windows. In a sparse file, 
00117 // large ranges of zeroes may not require disk allocation. Space for nonzero data will be allocated 
00118 // as needed as the file is written.
00119 //#define SPARSE_FILE_OPTIMIZATION true
00120 
00121 // ALIGN_HEADER - align each field of dbHeader class on its page boudary
00122 // to make it possible to transfer file between systems with different alignment 
00123 // strategies.
00124 //#define ALIGN_HEADER true
00125 
00126 // USE_REGEX - use regex library. When this macro is defined GigaBASE provides
00127 // MATCH command. GNU regex or compatible library and headers should be available.
00128 //#define USE_REGEX true
00129 
00130 // SOCK_LINGER - set SO_LINGER option. Value of SO_LINGER is specified using LINGER_TIME
00131 // #define SOCK_LINGER 1
00132 
00133 
00134 // Use reentrant version of localtime
00135 #if !defined(__APPLE__) && !defined(_WIN32)
00136 #define HAVE_LOCALTIME_R
00137 #endif
00138 
00139 // Use reentrant version of localtime
00140 #if !defined(__APPLE__) && !defined(_WIN32)
00141 #define HAVE_GETHOSTBYNAME_R
00142 #endif
00143 
00144 #endif
00145 
00146 #endif

Generated on Mon Oct 23 13:22:58 2006 for GigaBASE by doxygen1.2.18