source: branches/z3950-branch/gsdl/src/recpt/z3950proto.h@ 1174

Last change on this file since 1174 was 1174, checked in by johnmcp, 24 years ago

checkpoint - can now connect and get status information from a z39.50 server.
Still need to get queries and data retrieval working.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1
2#ifndef Z3950PROTO_H
3#define Z3050PROTO_H
4
5#include "recptproto.h"
6#include "z3950server.h"
7
8class z3950proto : public recptproto {
9protected:
10 int zserver_count;
11 z3950_server_array zservers;
12public:
13 z3950proto();
14 virtual ~z3950proto();
15
16 int getServerCount() { return zserver_count;}
17 /*
18 void add_collectserver (collectserver *thecserver)
19 {cservers.addcollectserver(thecserver);}
20 */
21
22 void add_server(const z3950_server& zserver);
23
24 void read_config_file(const text_t &filename);
25
26 void configure (const text_t &key, const text_tarray &cfgline);
27
28 bool init (ostream &logout);
29
30 text_t get_protocol_name () {return "z3950proto";}
31
32 void get_collection_list (text_tarray &collist, comerror_t &err,
33 ostream &logout);
34
35 void has_collection (const text_t &collection, bool &hascollection,
36 comerror_t &err, ostream &logout);
37
38 void ping (const text_t &collection, bool &wassuccess,
39 comerror_t &err, ostream &logout);
40
41 void get_collectinfo (const text_t &collection,
42 ColInfoResponse_t &collectinfo,
43 comerror_t &err, ostream &logout);
44
45 void get_filterinfo (const text_t &collection,
46 InfoFiltersResponse_t &response,
47 comerror_t &err, ostream &logout);
48
49 /* void get_info (const text_t &collection, const text_tset &metadata,
50 FilterResponse_t &response, ostream &logout);
51 */
52
53 void filter (const text_t &collection,
54 FilterRequest_t &request,
55 FilterResponse_t &response,
56 comerror_t &err, ostream &logout);
57
58 void get_document (const text_t &collection,
59 const DocumentRequest_t &request,
60 DocumentResponse_t &response,
61 comerror_t &err, ostream &logout);
62
63};
64
65#endif
Note: See TracBrowser for help on using the repository browser.