Switch to unified view

a/src/query/filtseq.h b/src/query/filtseq.h
...
...
17
#ifndef _FILTSEQ_H_INCLUDED_
17
#ifndef _FILTSEQ_H_INCLUDED_
18
#define _FILTSEQ_H_INCLUDED_
18
#define _FILTSEQ_H_INCLUDED_
19
19
20
#include <vector>
20
#include <vector>
21
#include <string>
21
#include <string>
22
using std::string;
23
using std::vector;
22
24
23
#include "refcntr.h"
25
#include "refcntr.h"
24
#include "docseq.h"
26
#include "docseq.h"
25
27
28
class RclConfig;
26
29
27
/** 
30
/** 
28
 * A filtered sequence is created from another one by selecting entries
31
 * A filtered sequence is created from another one by selecting entries
29
 * according to the given criteria.
32
 * according to the given criteria.
30
 */
33
 */
31
class DocSeqFiltered : public DocSeqModifier {
34
class DocSeqFiltered : public DocSeqModifier {
32
public:
35
public:
33
    DocSeqFiltered(RefCntr<DocSequence> iseq, DocSeqFiltSpec &filtspec)
36
    DocSeqFiltered(RclConfig *conf, RefCntr<DocSequence> iseq, 
34
  :  DocSeqModifier(iseq), m_spec(filtspec)
37
         DocSeqFiltSpec &filtspec);
35
    {}
36
    virtual ~DocSeqFiltered() {}
38
    virtual ~DocSeqFiltered() {}
37
    virtual bool canFilter() {return true;}
39
    virtual bool canFilter() {return true;}
38
    virtual bool setFiltSpec(DocSeqFiltSpec &filtspec);
40
    virtual bool setFiltSpec(DocSeqFiltSpec &filtspec);
39
    virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0);
41
    virtual bool getDoc(int num, Rcl::Doc &doc, string *sh = 0);
40
    virtual int getResCnt() {return m_seq->getResCnt();}
42
    virtual int getResCnt() {return m_seq->getResCnt();}
41
 private:
43
 private:
44
    RclConfig     *m_config;    
42
    DocSeqFiltSpec          m_spec;
45
    DocSeqFiltSpec m_spec;
43
    vector<int>             m_dbindices;
46
    vector<int>    m_dbindices;
44
};
47
};
45
48
46
#endif /* _FILTSEQ_H_INCLUDED_ */
49
#endif /* _FILTSEQ_H_INCLUDED_ */