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

Last change on this file since 241 was 220, checked in by rjmcnab, 25 years ago

Altered the protocol so that the metadata is part of the filter.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 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 220 1999-03-31 23:44:49Z rjmcnab $
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 const FilterRequest_t &request,
57 FilterResponse_t &response,
58 comerror_t &err, ostream &logout);
59};
60
61
62#endif
Note: See TracBrowser for help on using the repository browser.