3 #include "p2_backend.h"
5 class P2_BackendSetDummy : public IP2_BackendSet {
9 int get(int start, int number);
12 class P2_BackendDummy : public IP2_Backend {
14 P2_BackendDummy(const char *address);
16 int search(yazpp_1::Yaz_Z_Query *q, IP2_BackendSet **rset, int *hits);
19 P2_BackendDummy::P2_BackendDummy(const char *address)
21 yaz_log(YLOG_LOG, "P2_backendDummy %p create", this);
24 P2_BackendDummy::~P2_BackendDummy()
26 yaz_log(YLOG_LOG, "P2_backendDummy %p destroy", this);
29 int P2_BackendDummy::search(yazpp_1::Yaz_Z_Query *q, IP2_BackendSet **rset,
32 yaz_log(YLOG_LOG, "P2_backendDummy %p search", this);
34 P2_BackendSetDummy *s = new P2_BackendSetDummy();
41 int P2_BackendSetDummy::get(int start, int number)
43 yaz_log(YLOG_LOG, "P2_backendSetDummy %p get", this);
47 P2_BackendSetDummy::P2_BackendSetDummy()
49 yaz_log(YLOG_LOG, "P2_backendSetDummy %p create", this);
53 P2_BackendSetDummy::~P2_BackendSetDummy()
55 yaz_log(YLOG_LOG, "P2_backendSetDummy %p destroy", this);
58 static IP2_Backend *dummy_create(const char *address)
60 return new P2_BackendDummy(address);
63 P2_ModuleInterface0 int0 = {
67 P2_ModuleEntry p2_module_entry = {
74 P2_ModuleEntry *p2_backend_dummy = &p2_module_entry;