Changeset 7607


Ignore:
Timestamp:
2004-06-17T13:27:13+12:00 (20 years ago)
Author:
kjdon
Message:

added is_searchable() to the protocol - the default version alwasy returns false, so this overrides it to always return true.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

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

    r7381 r7607  
    599599  }
    600600}
     601
     602// sets issearchable to true if the given colection is searchable
     603void z3950proto::is_searchable (const text_t &/*collection*/, bool &issearchable,
     604                comerror_t &err, ostream &/*logout*/) {
     605  issearchable = true; // assume all collections are searchable?
     606  err = noError;
     607}
     608
  • trunk/gsdl/src/recpt/z3950proto.h

    r2229 r7607  
    8989             DocumentResponse_t &response,
    9090             comerror_t &err, ostream &logout);
     91 
     92  void is_searchable (const text_t &collection,
     93                  bool &issearchable,
     94                  comerror_t &err, ostream &logout);
    9195
    9296};
Note: See TracChangeset for help on using the changeset viewer.