source: branches/z3950-branch/gsdl/src/recpt/z3950server.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.0 KB
Line 
1#ifndef Z3950SERVER_H
2#define Z3050SERVER_H
3
4#include "comtypes.h"
5
6// each "server" (ie collection) consists of a {z39.50 server + database} pair.
7class z3950_server {
8 protected:
9 text_t title; // Descriptive name
10 text_tmap meta; // metadata for this collection (ie server/database pair)
11 text_tmap about; // langauge/abouttext pair for collection.
12 ShortColInfo_t *info; // has (database) name, host and port
13
14 public:
15 z3950_server();
16 ~z3950_server();
17 void setName(const text_t &newname);
18 const text_t getName() {return title;}
19 void setMeta(const text_t &key, const text_t &value);
20 const text_tmap *getMeta() {return &meta;}
21 void setInfo(ShortColInfo_t *newinfo) {info=newinfo;}
22 const ShortColInfo_t *getInfo() {return info;}
23 void addAbout(const text_t &lang, const text_t &abouttext);
24 const text_t &getAbout(const text_t &lang);
25 // now the functions that actually talk to the target (ie zserver)
26 // over tcp
27 text_t *connect_getAbout();
28};
29
30typedef vector<z3950_server> z3950_server_array;
31
32#endif
Note: See TracBrowser for help on using the repository browser.