Ignore:
Timestamp:
2000-05-25T11:28:32+12:00 (24 years ago)
Author:
johnmcp
Message:

Checkpoint: z39.50 collections can now connect and query (and show query
results). Todo: get individual documents, and get working under fast-cgi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/z3950-branch/gsdl/src/recpt/z3950server.h

    r1174 r1191  
    88 protected:
    99  text_t title;    // Descriptive name
     10  text_t z_initstr; // a string returned when the connection is initialised.
    1011  text_tmap meta;  // metadata for this collection (ie server/database pair)
    1112  text_tmap about; // langauge/abouttext pair for collection.
    1213  ShortColInfo_t *info; // has  (database) name, host and port
     14  text_tarray *titles;
     15  bool connect();
     16  bool connected; // tcp connection to the z39.50 server (target)
    1317
    1418 public:
     
    2125  void setInfo(ShortColInfo_t *newinfo) {info=newinfo;}
    2226  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();
     27  void addcfgAbout(const text_t &lang, const text_t &abouttext);
     28  bool getcfgAbout(const text_t &lang, text_t &abouttext);
     29  // now the functions that actually talk to the target (ie zserver) over tcp
     30  text_t &getzAbout(); // gets any name, id, MOTD, etc from server.
     31  text_tarray *getbriefrecords(const text_t &query,
     32                   const int first, const int count,
     33                   int *nummatches, comerror_t &err);
     34  /* only get one record at a time? (Eventually we could buffer them, but
     35     for now... */
     36  bool getfullrecord(const int ID, text_t &rettitle,
     37             text_t &rettext,comerror_t &err);
    2838};
    2939
    30 typedef  vector<z3950_server>  z3950_server_array;
     40typedef  vector<z3950_server *>  z3950_server_array;
    3141
    3242#endif
Note: See TracChangeset for help on using the changeset viewer.