[ci] Sort out appveyor
[xapian.git] / xapian-bindings / fake_dbfactory.i
blob65c115b54eea0795421c9b13acc232a93e54f823
1 %{
2 /* fake_dbfactory.i: Fake classes for xapian/dbfactory.h functions.
4 * Copyright 1999,2000,2001 BrightStation PLC
5 * Copyright 2001,2002 Ananova Ltd
6 * Copyright 2002,2003,2005 James Aylett
7 * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2011 Olly Betts
8 * Copyright 2007 Lemur Consulting Ltd
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
23 * USA
27 namespace Xapian {
29 /* Lie to SWIG that Auto, etc are classes with static methods rather than
30 namespaces so it wraps it as we want in C# and Java. */
31 class Auto {
32 private:
33 Auto();
34 ~Auto();
35 public:
36 static
37 Database open_stub(const string & file);
40 class Chert {
41 private:
42 Chert();
43 ~Chert();
44 public:
45 static
46 Database open(const std::string &dir);
47 static
48 WritableDatabase open(const std::string &dir, int action, int block_size = 8192);
51 class InMemory {
52 private:
53 InMemory();
54 ~InMemory();
55 public:
56 static
57 WritableDatabase open();
60 class Remote {
61 private:
62 Remote();
63 ~Remote();
64 public:
65 static
66 Database open(const std::string &host, unsigned int port, useconds_t timeout, useconds_t connect_timeout);
67 static
68 Database open(const std::string &host, unsigned int port, useconds_t timeout = 10000);
70 static
71 WritableDatabase open_writable(const std::string &host, unsigned int port, useconds_t timeout, useconds_t connect_timeout);
72 static
73 WritableDatabase open_writable(const std::string &host, unsigned int port, useconds_t timeout = 10000);
75 static
76 Database open(const std::string &program, const std::string &args, useconds_t timeout = 10000);
78 static
79 WritableDatabase open_writable(const std::string &program, const std::string &args, useconds_t timeout = 10000);