source: trunk/gsdl/src/recpt/nullproto.h@ 411

Last change on this file since 411 was 257, checked in by sjboddie, 25 years ago

lots of changes - slowly getting document action sorted out

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/**********************************************************************
2 *
3 * nullproto.h --
4 * Copyright (C) 1999 The New Zealand Digital Library Project
5 *
6 * PUT COPYRIGHT NOTICE HERE
7 *
8 * $Id: nullproto.h 257 1999-05-10 03:40:44Z sjboddie $
9 *
10 *********************************************************************/
11
12
13#ifndef NULLPROTO_H
14#define NULLPROTO_H
15
16#include "gsdlconf.h"
17#include "collectserver.h"
18#include "recptproto.h"
19
20
21class nullproto : public recptproto {
22protected:
23 collectservermapclass cservers;
24public:
25 virtual ~nullproto() {}
26
27 // add_collectserver should be called for each collection server
28 // before any configuration is done
29 void add_collectserver (collectserver *thecserver)
30 {cservers.addcollectserver(thecserver);}
31
32 // this configure will configure each of the collection servers
33 void configure (const text_t &key, const text_tarray &cfgline);
34
35 // this init will init each of the collection servers
36 bool init (ostream &logout);
37
38 text_t get_protocol_name ();
39 void get_collection_list (text_tarray &collist, comerror_t &err,
40 ostream &logout);
41 void has_collection (const text_t &collection, bool &hascollection,
42 comerror_t &err, ostream &logout);
43 void ping (const text_t &collection, bool &wassuccess,
44 comerror_t &err, ostream &logout);
45 void get_collectinfo (const text_t &collection,
46 ColInfoResponse_t &collectinfo,
47 comerror_t &err, ostream &logout);
48 void get_filterinfo (const text_t &collection,
49 InfoFiltersResponse_t &response,
50 comerror_t &err, ostream &logout);
51 void get_filteroptions (const text_t &collection,
52 const InfoFilterOptionsRequest_t &request,
53 InfoFilterOptionsResponse_t &response,
54 comerror_t &err, ostream &logout);
55 void filter (const text_t &collection,
56 FilterRequest_t &request,
57 FilterResponse_t &response,
58 comerror_t &err, ostream &logout);
59
60 void get_document (const text_t &collection,
61 const DocumentRequest_t &request,
62 DocumentResponse_t &response,
63 comerror_t &err, ostream &logout);
64
65};
66
67
68#endif
Note: See TracBrowser for help on using the repository browser.