Ignore:
Timestamp:
2000-08-03T17:21:26+12:00 (24 years ago)
Author:
jrm21
Message:

merged z39.50 receptionist stuff into main trunk (along with the mgpp stuff)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/z3950proto.h

    r1285 r1347  
    2828
    2929#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"
    8831
    8932class z3950proto : public recptproto {
     
    9336public:
    9437  z3950proto();
    95   virtual ~z3950proto() {}
     38  virtual ~z3950proto();
    9639
     40  int getServerCount() { return zserver_count;}
    9741  /*
    9842  void add_collectserver (collectserver *thecserver)
    9943        {cservers.addcollectserver(thecserver);}
    10044  */
     45 
     46  void add_server(z3950_server& zserver);
    10147
    102   void add_server(const z3950_server& zserver);
     48  void read_config_file(const text_t &filename);
    10349
    10450  void configure (const text_t &key, const text_tarray &cfgline);
     
    12874      FilterResponse_t &response, ostream &logout);
    12975  */
     76
     77  void get_filteroptions (const text_t &collection,
     78                          const InfoFilterOptionsRequest_t &request,
     79                          InfoFilterOptionsResponse_t &response,
     80                          comerror_t &err, ostream &logout);
    13081 
    13182  void filter (const text_t &collection,
     
    14192};
    14293
    143 
    14494#endif
Note: See TracChangeset for help on using the changeset viewer.