|
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 |
/* @(#$Id: filtseq.h,v 1.1 2008-09-28 07:40:56 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: filtseq.h,v 1.2 2008-09-28 14:20:50 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <vector>
|
21 |
#include <vector>
|
22 |
#include <string>
|
22 |
#include <string>
|
23 |
|
23 |
|
24 |
#include "refcntr.h"
|
24 |
#include "refcntr.h"
|
|
... |
|
... |
32 |
crits.push_back(crit);
|
32 |
crits.push_back(crit);
|
33 |
values.push_back(value);
|
33 |
values.push_back(value);
|
34 |
}
|
34 |
}
|
35 |
std::vector<Crit> crits;
|
35 |
std::vector<Crit> crits;
|
36 |
std::vector<string> values;
|
36 |
std::vector<string> values;
|
|
|
37 |
void reset() {crits.clear(); values.clear();}
|
|
|
38 |
bool isNotNull() {return crits.size() != 0;}
|
37 |
};
|
39 |
};
|
38 |
|
40 |
|
39 |
/**
|
41 |
/**
|
40 |
* A filtered sequence is created from another one by selecting entries
|
42 |
* A filtered sequence is created from another one by selecting entries
|
41 |
* according to the given criteria.
|
43 |
* according to the given criteria.
|