[8182] | 1 | #ifndef _ABSTRACTLISTACTION_H_
|
---|
| 2 | #define _ABSTRACTLISTACTION_H_
|
---|
| 3 |
|
---|
| 4 | #include "oaiaction.h"
|
---|
| 5 | #include "resumptiontoken.h"
|
---|
| 6 |
|
---|
| 7 | class abstractlistaction : public oaiaction
|
---|
| 8 | {
|
---|
| 9 | public:
|
---|
| 10 | abstractlistaction(const text_t &name) : oaiaction(name) {this->prevDocSeen = false;}
|
---|
| 11 | virtual bool validateAction(recptproto *protocol, oaiargs ¶ms, int &numArgs); // 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 ¶ms);
|
---|
| 15 | virtual void output_content_for_all(ostream &output, recptproto *protocol, oaiargs ¶ms);
|
---|
| 16 | virtual void output_content_for_col(ostream &output, recptproto *protocol, text_t &gsdlCollect,
|
---|
| 17 | ColInfoResponse_t &cinfo, comerror_t &err, oaiargs ¶ms);
|
---|
| 18 | virtual void recurse_set(ostream &output, recptproto *protocol, const text_t &collection,
|
---|
| 19 | const text_t &classifier, oaiargs ¶ms);
|
---|
| 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
|
---|