⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config_8h-source.html

📁 最新版本!fastdb是高效的内存数据库系统
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>config.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center>
<hr><h1>config.h</h1><div class="fragment"><pre>00001 <span class="comment">//-&lt; CONFIG.H &gt;------------------------------------------------------*--------*</span>
00002 <span class="comment">// FastDB                    Version 1.0         (c) 1999  GARRET    *     ?  *</span>
00003 <span class="comment">// (Post Relational Database Management System)                      *   /\|  *</span>
00004 <span class="comment">//                                                                   *  /  \  *</span>
00005 <span class="comment">//                          Created:     21-Jan-2004  K.A. Knizhnik  * / [] \ *</span>
00006 <span class="comment">//                          Last update: 21-Jan-2004  K.A. Knizhnik  * GARRET *</span>
00007 <span class="comment">//-------------------------------------------------------------------*--------*</span>
00008 <span class="comment">// FastDB configuration definitions</span>
00009 <span class="comment">//-------------------------------------------------------------------*--------*</span>
00010 
00011 <span class="preprocessor">#ifndef __CONFIG_H__</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define __CONFIG_H__</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#if (defined(_WIN32) || defined(_WINCE)) &amp;&amp; (!defined(_CRT_SECURE_NO_DEPRECATE))</span>
00015 <span class="preprocessor"></span><span class="preprocessor">#define _CRT_SECURE_NO_DEPRECATE true</span>
00016 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00017 <span class="preprocessor"></span>
00018 <span class="comment">// USE_LOCALE_SETTINGS - use C locale for string comparison operations</span>
00019 <span class="preprocessor">#define USE_LOCALE_SETTINGS 1</span>
00020 <span class="preprocessor"></span>
00021 <span class="comment">// FASTDB_DEBUG - debug level</span>
00022 <span class="comment">//    - DEBUG_NONE - disable any checking and tracing (except asserts)</span>
00023 <span class="comment">//    - DEBUG_CHECK - disable trace message</span>
00024 <span class="comment">//    - DEBUG_TRACE_IMPORTANT - enable trace of important messages </span>
00025 <span class="comment">//    - DEBUG_TRACE_ALL - enable trace of all messages </span>
00026 <span class="preprocessor">#define FASTDB_DEBUG DEBUG_TRACE_IMPORTANT</span>
00027 <span class="preprocessor"></span><span class="comment">//#define FASTDB_DEBUG DEBUG_TRACE_ALL</span>
00028 
00029 <span class="comment">// USE_NAMESPACES - place FastDB classes in separate namespace  </span>
00030 <span class="comment">//#define USE_NAMESPACES 1</span>
00031 
00032 <span class="comment">// SECURE_SERVER - enable authentication for remote logins: keep user/password table, </span>
00033 <span class="comment">//   check password for remote logins</span>
00034 <span class="comment">//#define SECURE_SERVER 1</span>
00035 
00036 <span class="comment">// USE_QUEUE_MANAGER - use queue manager for internal HTTP server. </span>
00037 <span class="comment">//   This manager will manage pool of threads assigned for client connections. </span>
00038 <span class="comment">//   Otherwise all requests will be executed sequnetially in the main loop.</span>
00039 <span class="comment">//#define USE_QUEUE_MANAGER 1</span>
00040 
00041 
00042 <span class="comment">// FASTDB_DLL - create fastdb.dll</span>
00043 <span class="comment">//#define FASTDB_DLL 1</span>
00044 
00045 
00046 <span class="comment">// THROW_EXCEPTION_ON_ERROR - throw C++ exception in case of database error instead of abort()</span>
00047 <span class="preprocessor">#ifndef _WINCE</span>
00048 <span class="preprocessor"></span><span class="preprocessor">#define THROW_EXCEPTION_ON_ERROR 1</span>
00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00050 <span class="preprocessor"></span>
00051 
00052 <span class="comment">//IGNORE_CASE - perform all string comparisons as case insensitive</span>
00053 <span class="comment">//#define IGNORE_CASE 1</span>
00054 
00055 <span class="comment">//USE_STD_STRING - accept std::string class as table field type</span>
00056 <span class="preprocessor">#ifdef _WIN32</span>
00057 <span class="preprocessor"></span><span class="preprocessor">#define USE_STD_STRING 1</span>
00058 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00059 <span class="preprocessor"></span>
00060 <span class="comment">//AUTOINCREMENT_SUPPORT - support autoincrement fields </span>
00061 <span class="comment">//  (database built with this flag will be incompatible with database built without it)</span>
00062 <span class="preprocessor">#define AUTOINCREMENT_SUPPORT 1</span>
00063 <span class="preprocessor"></span>
00064 <span class="comment">//CLONE_IDENTIFIERS - do not storef addresses of string constants in symbol table.</span>
00065 <span class="comment">//  This option is needed if DLL library using FastDB can be unloaded.</span>
00066 <span class="comment">//#define CLONE_IDENTIFIERS 1 </span>
00067 
00068 <span class="comment">//DISKLESS_CONFIGURATION - only in-memory temporary database</span>
00069 <span class="comment">//#define DISKLESS_CONFIGURATION 1</span>
00070 
00071 <span class="comment">// RECTANGLE_DIMENSION - dimension of built-in rectangle type</span>
00072 <span class="preprocessor">#define RECTANGLE_DIMENSION 2</span>
00073 <span class="preprocessor"></span>
00074 <span class="comment">// RECTANGLE_COORDINATE_TYPE - type of rectanlge's coordinates</span>
00075 <span class="preprocessor">#define RECTANGLE_COORDINATE_TYPE int</span>
00076 <span class="preprocessor"></span><span class="comment">//#define RECTANGLE_COORDINATE_TYPE double</span>
00077 
00078 <span class="comment">// RECTANGLE_AREA_TYPE - type of rectanlge's area</span>
00079 <span class="preprocessor">#define RECTANGLE_AREA_TYPE db_int8</span>
00080 <span class="preprocessor"></span><span class="comment">//#define RECTANGLE_AREA_TYPE double</span>
00081 
00082 <span class="comment">//SET_NULL_DACL - use NULL DACL security descriptor for all synchronization objects.</span>
00083 <span class="comment">//#define SET_NULL_DACL 1</span>
00084 
00085 <span class="comment">//INT8_IS_DEFINED - int8 type is defined at your system, in this case you should use db_int8 type instead</span>
00086 <span class="comment">//#define INT8_IS_DEFINED 1</span>
00087 
00088 <span class="comment">//USE_POSIX_SEMAPHORES use POSIX sem_* sempahores instead of SysV semaphores</span>
00089 <span class="comment">//     instead of SysV semaphores and shared memory</span>
00090 <span class="comment">//#define USE_POSIX_SEMAPHORES 1</span>
00091 
00092 
00093 <span class="comment">//USE_POSIX_MMAP - if 1 then use Posix mmap for mapping database file and monitor, </span>
00094 <span class="comment">//  if 0 - use SysV IPC shmem for allocating memory for database file and monitor,</span>
00095 <span class="comment">//  if not defined - use mmap for mapping database file and shmem for allocating monitor</span>
00096 <span class="comment">//#define USE_POSIX_MMAP 0</span>
00097 
00098 <span class="comment">//REPLICATION_SUPPORT - fault tolerant version of FastDB</span>
00099 <span class="comment">//#define REPLICATION_SUPPORT 1</span>
00100 
00101 <span class="comment">//NO_MMAP do not use OS mappig of file on virtual memory. FastDB will track modification of</span>
00102 <span class="comment">//  pages itself and save dirty pages in the file. If USE_POSIX_MMAP=0, memory for database is</span>
00103 <span class="comment">//  allocated using shmat() and database can be shared by several processes, </span>
00104 <span class="comment">//  otherwise - using valloc() and database can be accessed only by one process. </span>
00105 <span class="comment">//#define NO_MMAP 1</span>
00106 
00107 <span class="comment">//FUZZY_CHECKPOINT allows to increase application performance, by performing writing to the file in </span>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -