xapian-core  2.0.0
remote-document.cc
Go to the documentation of this file.
1 
4 /* Copyright (C) 2008 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, see
18  * <https://www.gnu.org/licenses/>.
19  */
20 
21 #include <config.h>
22 
23 #include "remote-document.h"
24 
25 #include "debuglog.h"
26 #include "omassert.h"
27 
28 using namespace std;
29 
30 string
32 {
33  LOGCALL(DB, string, "RemoteDocument::fetch_value", Literal("[slot]"));
34  // Our ctor sets the values, so we should never get here.
35  Assert(false);
36  RETURN(string());
37 }
38 
39 void
40 RemoteDocument::fetch_all_values(map<Xapian::valueno, string> &) const
41 {
42  LOGCALL_VOID(DB, "RemoteDocument::fetch_all_values", Literal("[&values_]"));
43  // Our ctor sets the values, so we should never get here.
44  Assert(false);
45 }
46 
47 string
49 {
50  LOGCALL(DB, string, "RemoteDocument::fetch_data", NO_ARGS);
51  // Our ctor sets the data, so we should never get here.
52  Assert(false);
53  RETURN(string());
54 }
std::string fetch_data() const
Implementation of virtual methods.
std::string fetch_value(Xapian::valueno slot) const
Implementation of virtual methods.
void fetch_all_values(std::map< Xapian::valueno, std::string > &values_) const
Implementation of virtual methods.
Debug logging macros.
#define RETURN(...)
Definition: debuglog.h:484
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
Definition: debuglog.h:478
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
Definition: debuglog.h:479
unsigned valueno
The number for a value slot in a document.
Definition: types.h:90
Various assertion macros.
#define Assert(COND)
Definition: omassert.h:122
A document read from a RemoteDatabase.
Definition: pretty.h:48