Changeset 1347 for trunk/gsdl/src/recpt/z3950proto.h
- Timestamp:
- 2000-08-03T17:21:26+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/z3950proto.h
r1285 r1347 28 28 29 29 #include "recptproto.h" 30 31 // each server can have one or more databases 32 /* 33 class z3950_DB { 34 protected: 35 text_t name; // Descriptive name 36 text_t database; // name for server 37 38 public: 39 z3950_DB(); // constructor 40 ~z3950_DB(); // deconstructor 41 const text_t getName() {return name;} // this gets name 42 void setName(text_t newName) {name=newName;} // this sets name 43 // need to get next (for linked list) 44 }; 45 46 47 typedef vector<z3950_DB> z3950_DB_array; 48 */ 49 50 /*class z3950_DB_Array { 51 protected: 52 int count; 53 // some arraytype... 54 public: 55 z3950_DB first(); 56 z3950_DB last(); 57 void add(z3950_DB *db); 58 void remove(z3950_DB *db); 59 }; 60 */ 61 62 63 class z3950_server { 64 protected: 65 text_t title; // Descriptive name 66 text_t hostname; // network name (IP or host+domain name) 67 text_tmap meta; // metadata for this collection (ie server/database pair) 68 // this is currently only iconcollection (and iconcollectionsmall) 69 int count; 70 // z3950_DB_array* db; 71 ShortColInfo_t *info; // has (database) name, host and port 72 73 public: 74 z3950_server(); 75 // z3950_DB_array getDBs(); 76 const text_t getName() {return title;} 77 void setName(const text_t &newname) {title=newname;} 78 // void setHostname(const text_t &newname) {hostname=newname;} 79 void setInfo(ShortColInfo_t *newinfo) {info=newinfo;} 80 const ShortColInfo_t *getInfo() {return info;} 81 const text_tmap *getMeta() {return &meta;} 82 }; 83 84 typedef vector<z3950_server> z3950_server_array; 85 86 87 30 #include "z3950server.h" 88 31 89 32 class z3950proto : public recptproto { … … 93 36 public: 94 37 z3950proto(); 95 virtual ~z3950proto() {}38 virtual ~z3950proto(); 96 39 40 int getServerCount() { return zserver_count;} 97 41 /* 98 42 void add_collectserver (collectserver *thecserver) 99 43 {cservers.addcollectserver(thecserver);} 100 44 */ 45 46 void add_server(z3950_server& zserver); 101 47 102 void add_server(const z3950_server& zserver);48 void read_config_file(const text_t &filename); 103 49 104 50 void configure (const text_t &key, const text_tarray &cfgline); … … 128 74 FilterResponse_t &response, ostream &logout); 129 75 */ 76 77 void get_filteroptions (const text_t &collection, 78 const InfoFilterOptionsRequest_t &request, 79 InfoFilterOptionsResponse_t &response, 80 comerror_t &err, ostream &logout); 130 81 131 82 void filter (const text_t &collection, … … 141 92 }; 142 93 143 144 94 #endif
Note:
See TracChangeset
for help on using the changeset viewer.