xapian-core  1.4.26
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, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #include <config.h>
22 
23 #include "remote-document.h"
24 
25 #include "debuglog.h"
26 #include "omassert.h"
27 
28 string
30 {
31  LOGCALL(DB, string, "RemoteDocument::do_get_value", Literal("[slot]"));
32  // Our ctor sets the values, so we should never get here.
33  Assert(false);
34  RETURN(string());
35 }
36 
37 void
38 RemoteDocument::do_get_all_values(map<Xapian::valueno, string> &) const
39 {
40  LOGCALL_VOID(DB, "RemoteDocument::do_get_all_values", Literal("[&values_]"));
41  // Our ctor sets the values, so we should never get here.
42  Assert(false);
43 }
44 
45 string
47 {
48  LOGCALL(DB, string, "RemoteDocument::do_get_data", NO_ARGS);
49  // Our ctor sets the data, so we should never get here.
50  Assert(false);
51  RETURN(string());
52 }
#define RETURN(A)
Definition: debuglog.h:493
#define Assert(COND)
Definition: omassert.h:122
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
Definition: debuglog.h:488
Definition: pretty.h:45
string do_get_value(Xapian::valueno slot) const
Implementation of virtual methods.
A document read from a RemoteDatabase.
void do_get_all_values(map< Xapian::valueno, string > &values_) const
Implementation of virtual methods.
string do_get_data() const
Implementation of virtual methods.
unsigned valueno
The number for a value slot in a document.
Definition: types.h:108
Various assertion macros.
Debug logging macros.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
Definition: debuglog.h:487