1 /** @file backendmanager_local.h
2  * @brief BackendManager subclass for local databases.
3  */
4 /* Copyright (C) 2007,2008,2009 Olly Betts
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of the
9  * License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19  */
20 
21 #ifndef XAPIAN_INCLUDED_BACKENDMANAGER_LOCAL_H
22 #define XAPIAN_INCLUDED_BACKENDMANAGER_LOCAL_H
23 
24 #include <xapian.h>
25 
26 #if defined XAPIAN_HAS_CHERT_BACKEND
27 # include "backendmanager_chert.h"
28 # define BackendManagerLocal BackendManagerChert
29 #elif defined XAPIAN_HAS_BRASS_BACKEND
30 # include "backendmanager_brass.h"
31 # define BackendManagerLocal BackendManagerBrass
32 #elif defined XAPIAN_HAS_FLINT_BACKEND
33 # include "backendmanager_flint.h"
34 # define BackendManagerLocal BackendManagerFlint
35 #else
36 # include "backendmanager.h"
37 class BackendManagerLocal : public BackendManager {
BackendManagerLocal()38     BackendManagerLocal() {
39 	SKIP_TEST("No local database backend enabled");
40     }
41 };
42 #endif
43 
44 #endif // XAPIAN_INCLUDED_BACKENDMANAGER_LOCAL_H
45