00001
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef XAPIAN_INCLUDED_DBFACTORY_H
00023 #define XAPIAN_INCLUDED_DBFACTORY_H
00024
00025 #include <string>
00026
00027 #include <xapian/types.h>
00028 #include <xapian/database.h>
00029 #include <xapian/version.h>
00030 #include <xapian/visibility.h>
00031
00032 namespace Xapian {
00033
00034 namespace Auto {
00035
00043 XAPIAN_VISIBILITY_DEFAULT
00044 Database open_stub(const std::string &file);
00045
00046 }
00047
00048 #ifdef XAPIAN_HAS_INMEMORY_BACKEND
00049 namespace InMemory {
00050
00055 XAPIAN_VISIBILITY_DEFAULT
00056 WritableDatabase open();
00057
00058 }
00059 #endif
00060
00061 #ifdef XAPIAN_HAS_QUARTZ_BACKEND
00062 namespace Quartz {
00063
00068 XAPIAN_VISIBILITY_DEFAULT
00069 Database open(const std::string &dir);
00070
00089 XAPIAN_VISIBILITY_DEFAULT
00090 WritableDatabase
00091 open(const std::string &dir, int action, int block_size = 8192);
00092
00093 }
00094 #endif
00095
00096 #ifdef XAPIAN_HAS_FLINT_BACKEND
00097 namespace Flint {
00098
00103 XAPIAN_VISIBILITY_DEFAULT
00104 Database open(const std::string &dir);
00105
00124 XAPIAN_VISIBILITY_DEFAULT
00125 WritableDatabase
00126 open(const std::string &dir, int action, int block_size = 8192);
00127
00128 }
00129 #endif
00130
00131 #ifdef XAPIAN_HAS_REMOTE_BACKEND
00132 namespace Remote {
00133
00135
00152 XAPIAN_VISIBILITY_DEFAULT
00153 Database open(const std::string &host, unsigned int port, Xapian::timeout timeout, Xapian::timeout connect_timeout);
00154 XAPIAN_VISIBILITY_DEFAULT
00155 Database open(const std::string &host, unsigned int port, Xapian::timeout timeout = 10000);
00157
00159 XAPIAN_VISIBILITY_DEFAULT
00160 WritableDatabase open_writable(const std::string &host, unsigned int port, Xapian::timeout timeout, Xapian::timeout connect_timeout);
00161 XAPIAN_VISIBILITY_DEFAULT
00162 WritableDatabase open_writable(const std::string &host, unsigned int port, Xapian::timeout timeout = 10000);
00164
00178 XAPIAN_VISIBILITY_DEFAULT
00179 Database open(const std::string &program, const std::string &args, Xapian::timeout timeout = 10000);
00180
00194 XAPIAN_VISIBILITY_DEFAULT
00195 WritableDatabase open_writable(const std::string &program, const std::string &args, Xapian::timeout timeout = 10000);
00196
00197 }
00198 #endif
00199
00200 }
00201
00202 #endif