Switch to unified view

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