Make glass the default backend
[xapian.git] / xapian-core / tests / harness / backendmanager_local.h
blob180ea2484c057c5714f63ceb55249978e2e0de50
1 /** @file backendmanager_local.h
2 * @brief BackendManager subclass for local databases.
3 */
4 /* Copyright (C) 2007,2008,2009,2011,2016 Olly Betts
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.
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.
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
21 #ifndef XAPIAN_INCLUDED_BACKENDMANAGER_LOCAL_H
22 #define XAPIAN_INCLUDED_BACKENDMANAGER_LOCAL_H
24 #include <xapian.h>
26 #if defined XAPIAN_HAS_GLASS_BACKEND
27 # include "backendmanager_glass.h"
28 # define BackendManagerLocal BackendManagerGlass
29 #elif defined XAPIAN_HAS_CHERT_BACKEND
30 # include "backendmanager_chert.h"
31 # define BackendManagerLocal BackendManagerChert
32 #else
33 # include "backendmanager.h"
34 class BackendManagerLocal : public BackendManager {
35 BackendManagerLocal() {
36 SKIP_TEST("No local database backend enabled");
39 #endif
41 #endif // XAPIAN_INCLUDED_BACKENDMANAGER_LOCAL_H