0.4.00.4.10.4.2
|
Last change
on this file since a14aa07 was
e11d494,
checked in by Michael Medin <michael@…>, 22 months ago
|
|
2011-07-25
- merged in all 0.3.9 changes into 0.4.0
- refactored where filter to be "non template" to drastically reduce compile time (as well as potentially size if I ever go dll instead of static link)
- streamlined checkeventlog toi be same as "the other" where filters as well as dropped support of "old" syntax.
|
-
Property mode set to
100644
|
|
File size:
999 bytes
|
| Line | |
|---|
| 1 | #include "stdafx.h"
|
|---|
| 2 |
|
|---|
| 3 | /*
|
|---|
| 4 | #include "file_info.hpp"
|
|---|
| 5 | #include <strEx.h>
|
|---|
| 6 | #include <error.hpp>
|
|---|
| 7 | #include <config.h>
|
|---|
| 8 |
|
|---|
| 9 | #include "filter.hpp"
|
|---|
| 10 |
|
|---|
| 11 | #include <parsers/where/unary_fun.hpp>
|
|---|
| 12 | #include <parsers/where/list_value.hpp>
|
|---|
| 13 | #include <parsers/where/binary_op.hpp>
|
|---|
| 14 | #include <parsers/where/unary_op.hpp>
|
|---|
| 15 | #include <parsers/where/variable.hpp>
|
|---|
| 16 |
|
|---|
| 17 | bool file_finder::filter::matchFilter(file_filter::filter_obj *value) const {
|
|---|
| 18 | if ((size.hasFilter())&&(size.matchFilter(value->get_size())))
|
|---|
| 19 | return true;
|
|---|
| 20 | else if (creation.hasFilter()&&creation.matchFilter(value->get_creation()))
|
|---|
| 21 | return true;
|
|---|
| 22 | else if (accessed.hasFilter()&&accessed.matchFilter(value->get_access()))
|
|---|
| 23 | return true;
|
|---|
| 24 | else if (written.hasFilter()&&written.matchFilter(value->get_write()))
|
|---|
| 25 | return true;
|
|---|
| 26 | else if ((version.hasFilter())&&(version.matchFilter(value->get_version())))
|
|---|
| 27 | return true;
|
|---|
| 28 | else if ((line_count.hasFilter())&&(line_count.matchFilter(value->get_line_count())))
|
|---|
| 29 | return true;
|
|---|
| 30 | return false;
|
|---|
| 31 | }
|
|---|
| 32 | */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.