|
a/src/query/filtseq.h |
|
b/src/query/filtseq.h |
|
... |
|
... |
27 |
|
27 |
|
28 |
/**
|
28 |
/**
|
29 |
* A filtered sequence is created from another one by selecting entries
|
29 |
* A filtered sequence is created from another one by selecting entries
|
30 |
* according to the given criteria.
|
30 |
* according to the given criteria.
|
31 |
*/
|
31 |
*/
|
32 |
class DocSeqFiltered : public DocSequence {
|
32 |
class DocSeqFiltered : public DocSeqModifier {
|
33 |
public:
|
33 |
public:
|
34 |
DocSeqFiltered(RefCntr<DocSequence> iseq, DocSeqFiltSpec &filtspec,
|
34 |
DocSeqFiltered(RefCntr<DocSequence> iseq, DocSeqFiltSpec &filtspec,
|
35 |
const std::string &t);
|
35 |
const std::string &t);
|
36 |
virtual ~DocSeqFiltered() {}
|
36 |
virtual ~DocSeqFiltered() {}
|
37 |
virtual bool canFilter() {return true;}
|
37 |
virtual bool canFilter() {return true;}
|
38 |
virtual bool setFiltSpec(DocSeqFiltSpec &filtspec);
|
38 |
virtual bool setFiltSpec(DocSeqFiltSpec &filtspec);
|
39 |
virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0);
|
39 |
virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0);
|
40 |
virtual int getResCnt() {return m_seq->getResCnt();}
|
40 |
virtual int getResCnt() {return m_seq->getResCnt();}
|
41 |
virtual string getAbstract(Rcl::Doc& doc) {
|
|
|
42 |
return m_seq->getAbstract(doc);
|
|
|
43 |
}
|
|
|
44 |
virtual string getDescription() {return m_seq->getDescription();}
|
|
|
45 |
|
|
|
46 |
private:
|
41 |
private:
|
47 |
RefCntr<DocSequence> m_seq;
|
|
|
48 |
DocSeqFiltSpec m_spec;
|
42 |
DocSeqFiltSpec m_spec;
|
49 |
vector<int> m_dbindices;
|
43 |
vector<int> m_dbindices;
|
50 |
};
|
44 |
};
|
51 |
|
45 |
|
52 |
#endif /* _FILTSEQ_H_INCLUDED_ */
|
46 |
#endif /* _FILTSEQ_H_INCLUDED_ */
|