![]() |
OpenMS
|
Representation of a peak/feature filter combining FilterType, FilterOperation and a value (either double or String) More...
#include <OpenMS/PROCESSING/MISC/DataFilters.h>
Public Member Functions | |
| DataFilter () | |
| DataFilter (const FilterType type, const FilterOperation op, const double val, const std::string &meta_name="") | |
| ctor for common case of numerical filter | |
| DataFilter (const FilterType type, const FilterOperation op, const std::string &val, const std::string &meta_name="") | |
| ctor for common case of string filter | |
| std::string | toString () const |
| Returns a string representation of the filter. | |
| void | fromString (const std::string &filter) |
Parses filter and sets the filter properties accordingly. | |
| bool | operator== (const DataFilter &rhs) const |
| Equality operator. | |
| bool | operator!= (const DataFilter &rhs) const |
| Inequality operator. | |
Public Attributes | |
| FilterType | field { DataFilters::INTENSITY } |
| Field to filter. | |
| FilterOperation | op { DataFilters::GREATER_EQUAL} |
| Filter operation. | |
| double | value { 0.0 } |
| Value for comparison. | |
| std::string | value_string |
| std::string value for comparison (for meta data) | |
| std::string | meta_name |
| Name of the considered meta information (key) | |
| bool | value_is_numerical { false } |
use value or value_string ? | |
Representation of a peak/feature filter combining FilterType, FilterOperation and a value (either double or String)
|
inline |
|
inline |
ctor for common case of numerical filter
|
inline |
ctor for common case of string filter
| void fromString | ( | const std::string & | filter | ) |
Parses filter and sets the filter properties accordingly.
This method accepts the format provided by toString().
| Exception::InvalidValue | is thrown when the filter is not formatted properly |
| bool operator!= | ( | const DataFilter & | rhs | ) | const |
Inequality operator.
| bool operator== | ( | const DataFilter & | rhs | ) | const |
Equality operator.
| std::string toString | ( | ) | const |
Returns a string representation of the filter.
| FilterType field { DataFilters::INTENSITY } |
Field to filter.
Referenced by DataFilters::passes(), DataFilters::passes(), and DataFilters::passes().
| std::string meta_name |
Name of the considered meta information (key)
Referenced by DataFilters::passes(), and DataFilters::passes().
Filter operation.
Referenced by DataFilters::passes(), DataFilters::passes(), and DataFilters::passes().
| double value { 0.0 } |
Value for comparison.
Referenced by DataFilters::passes(), DataFilters::passes(), and DataFilters::passes().
| bool value_is_numerical { false } |
use value or value_string ?
| std::string value_string |
std::string value for comparison (for meta data)