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

Last change on this file since 173 was 166, checked in by rjmcnab, 25 years ago

Initial revision.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 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 166 1999-02-21 22:35:26Z 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};
49
50
51#endif
Note: See TracBrowser for help on using the repository browser.