include/xapian/dbfactory.h

Go to the documentation of this file.
00001 
00004 /* Copyright (C) 2005,2006,2007 Olly Betts
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of the
00009  * License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00019  * USA
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 /* XAPIAN_INCLUDED_DBFACTORY_H */

Documentation for Xapian (version 0.9.10_svn8391).
Generated on 26 Apr 2007 by Doxygen 1.4.6.