root/gsdl/trunk/runtime-src/src/oaiservr/abstractlistaction.h @ 16712

Revision 16712, 1.1 KB (checked in by mdewsnip, 11 years ago)

Removed the abstractlistaction::validateAction() function and duplicated the code in listidsaction::validateAction() and listrecsaction::validateAction(), since the handling of the metadataPrefix is slightly different.

  • Property svn:keywords set to Author Date Id Revision
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 output_document(ostream &output, recptproto *protocol, const text_t &collection,
12                   const text_t &OID, const text_t &metadataPrefix) = 0;
13  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);
19 protected:
20  bool prevDocSeen;
21  int  outputDocs;
22  ResumptionToken *replyToken;
23  bool check_classifier(recptproto *protocol, const text_t &collection, const text_t &classifier);
24};
25#endif
Note: See TracBrowser for help on using the browser.