source: gsdl/trunk/runtime-src/src/oaiservr/abstractlistaction.h@ 16710

Last change on this file since 16710 was 16710, checked in by mdewsnip, 16 years ago

Completely tidied up abstractlistaction::validateAction() to handle the resumptionToken argument properly, and to structure the checking code more consistently.

  • Property svn:keywords set to Author Date Id Revision
File size: 1.2 KB
Line 
1#ifndef _ABSTRACTLISTACTION_H_
2#define _ABSTRACTLISTACTION_H_
3
4#include "oaiaction.h"
5#include "resumptiontoken.h"
6
7class abstractlistaction : public oaiaction
8{
9 public:
10 abstractlistaction(const text_t &name) : oaiaction(name) {this->prevDocSeen = false;}
11 virtual bool validateAction(recptproto *protocol, oaiargs &params); // Check that this is a valid action
12 virtual bool output_document(ostream &output, recptproto *protocol, const text_t &collection,
13 const text_t &OID, const text_t &metadataPrefix) = 0;
14 virtual bool output_content(ostream &output, recptproto *protocol, oaiargs &params);
15 virtual void output_content_for_all(ostream &output, recptproto *protocol, oaiargs &params);
16 virtual void output_content_for_col(ostream &output, recptproto *protocol, text_t &gsdlCollect,
17 ColInfoResponse_t &cinfo, comerror_t &err, oaiargs &params);
18 virtual void recurse_set(ostream &output, recptproto *protocol, const text_t &collection,
19 const text_t &classifier, oaiargs &params, ResumptionToken *resumptionToken);
20 protected:
21 bool prevDocSeen;
22 int outputDocs;
23 ResumptionToken *replyToken;
24 bool check_classifier(recptproto *protocol, const text_t &collection, const text_t &classifier);
25};
26#endif
Note: See TracBrowser for help on using the repository browser.