| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
#ifndef __FILTERS_H__ |
| 16 |
#define __FILTERS_H__ |
| 17 |
|
| 18 |
#define LAS_ALL 0 |
| 19 |
#define LAS_FIRST 1 |
| 20 |
#define LAS_MID 2 |
| 21 |
#define LAS_LAST 3 |
| 22 |
|
| 23 |
struct ReturnFilter { |
| 24 |
int filter; |
| 25 |
}; |
| 26 |
|
| 27 |
struct ClassFilter { |
| 28 |
|
| 29 |
|
| 30 |
char **str_classes; |
| 31 |
}; |
| 32 |
|
| 33 |
struct Option; |
| 34 |
|
| 35 |
int range_filter_from_option(struct Option *option, double *min, double *max); |
| 36 |
|
| 37 |
int return_filter_create_from_string(struct ReturnFilter *return_filter, |
| 38 |
const char *name); |
| 39 |
int return_filter_is_out(struct ReturnFilter *return_filter, int return_n, |
| 40 |
int n_returns); |
| 41 |
int class_filter_create_from_strings(struct ClassFilter *class_filter, |
| 42 |
char **classes); |
| 43 |
int class_filter_is_out(struct ClassFilter *class_filter, int class_n); |
| 44 |
|
| 45 |
#endif |