00001 // 00002 // WordDBInfo.h 00003 // 00004 // NAME 00005 // inverted index usage environment. 00006 // 00007 // SYNOPSIS 00008 // 00009 // Only called thru WordContext::Initialize() 00010 // 00011 // DESCRIPTION 00012 // 00013 // The inverted indexes may be shared among processes/threads and provide the 00014 // appropriate locking to prevent mistakes. In addition the memory cache 00015 // used by <i>WordList</i> objects may be shared by processes/threads, 00016 // greatly reducing the memory needs in multi-process applications. 00017 // For more information about the shared environment, check the Berkeley 00018 // DB documentation. 00019 // 00020 // CONFIGURATION 00021 // 00022 // wordlist_env_skip {true,false} (default false) 00023 // If true no environment is created at all. This must never 00024 // be used if a <i>WordList</i> object is created. It may be 00025 // useful if only <i>WordKey</i> objects are used, for instance. 00026 // 00027 // wordlist_env_share {true,false} (default false) 00028 // If true a sharable environment is open or created if none exist. 00029 // 00030 // wordlist_env_dir <directory> (default .) 00031 // Only valid if <i>wordlist_env_share</i> set to <i>true.</i> 00032 // Specify the directory in which the sharable environment will 00033 // be created. All 00034 // inverted indexes specified with a non-absolute pathname will be 00035 // created relative to this directory. 00036 // 00037 // 00038 // END 00039 // 00040 // Part of the ht://Dig package <http://www.htdig.org/> 00041 // Copyright (c) 1999, 2000, 2001 The ht://Dig Group 00042 // For copyright details, see the file COPYING in your distribution 00043 // or the GNU General Public License version 2 or later 00044 // <http://www.gnu.org/copyleft/gpl.html> 00045 // 00046 // 00047 00048 #ifndef _WordDBInfo_h_ 00049 #define _WordDBInfo_h_ 00050 00051 #include "Configuration.h" 00052 00053 struct __db_env; 00054 00055 class WordDBInfo 00056 { 00057 public: 00058 WordDBInfo(const Configuration& config); 00059 ~WordDBInfo(); 00060 00061 // 00062 // Berkeley DB environment 00063 // 00064 struct __db_env *dbenv; 00065 }; 00066 00067 #endif