Ignore:
Timestamp:
2009-09-11T11:54:17+12:00 (15 years ago)
Author:
mdewsnip
Message:

Completely rewrote the resumption token support, as its buginess finally tipped the "I can't stand it any more" scale...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/oaiservr/abstractlistaction.h

    r16712 r20590  
    88{
    99 public:
    10   abstractlistaction(const text_t &name) : oaiaction(name) {this->prevDocSeen = false;}
     10  abstractlistaction(const text_t &name) : oaiaction(name) { }
     11
    1112  virtual bool output_document(ostream &output, recptproto *protocol, const text_t &collection,
    1213                   const text_t &OID, const text_t &metadataPrefix) = 0;
     14
    1315  virtual bool output_content(ostream &output, recptproto *protocol, oaiargs &params);
    14   virtual void output_content_for_all(ostream &output, recptproto *protocol, oaiargs &params);
    15   virtual void output_content_for_col(ostream &output, recptproto *protocol, text_t &gsdlCollect,
    16                       ColInfoResponse_t &cinfo, comerror_t &err, oaiargs &params);
    17   virtual void recurse_set(ostream &output, recptproto *protocol, const text_t &collection,
    18                const text_t &classifier, oaiargs &params, ResumptionToken *resumptionToken);
     16
     17  virtual bool output_content_for_set(ostream &output, recptproto *protocol, oaiargs &params, text_t collection_name, text_t gsdl_classifier_OID, text_t set_name);
     18
     19
    1920 protected:
    20   bool prevDocSeen;
    21   int  outputDocs;
    22   ResumptionToken *replyToken;
    23   bool check_classifier(recptproto *protocol, const text_t &collection, const text_t &classifier);
     21  int output_docs;
     22
     23  bool check_classifier(recptproto *protocol, const text_t &collection, const text_t &set_name);
     24
     25  bool in_date_range(ostream &output, recptproto *protocol, oaiargs &params,
     26             text_t& collection, text_t oai_OID, text_t from, text_t until);
    2427};
     28
    2529#endif
Note: See TracChangeset for help on using the changeset viewer.