EventAnalysis
1.3.0
|
#include <Filter.h>
Classes | |
class | Representation |
Public Member Functions | |
Filter () | |
Constructor. More... | |
FilterResult | GetFilterResult () |
Get the result for the filter. More... | |
FilterLogic | GetFilterLogic () |
Get the current filter logic. More... | |
void | SetFilterStatus (FilterStatus status) |
Toggles on and off filtering. More... | |
FilterStatus | GetFilterStatus () |
The filter status. More... | |
void | SetFilterLogic (FilterLogic filterLogic) |
Sets the filter return value logic. More... | |
Protected Member Functions | |
void | SetFilterResult (FilterResult result) |
Sets the result. More... | |
Filter (const std::shared_ptr< Representation > &impl) | |
std::shared_ptr< Representation > & | GetRepresentation () |
Private Attributes | |
std::shared_ptr< Representation > | _repr |
Filter class.
The class implements a filter with an internal result flag (determined by the outcome of a selection routine) and accessory methods for enabling/disabling the filter and for inverting the filter logic.
EA::Filter::Filter | ( | ) |
Constructor.
|
inlineprotected |
|
inline |
Get the current filter logic.
FilterResult EA::Filter::GetFilterResult | ( | ) |
Get the result for the filter.
This routine checks the filter internal result and returns PASS or FALSE according to the filter logic.
|
inline |
The filter status.
This method returns the status of the filter for the algorithm.
|
inlineprotected |
void EA::Filter::SetFilterLogic | ( | FilterLogic | filterLogic | ) |
Sets the filter return value logic.
If INVERSE logic is set, then GetFilterResult return value will be inverted, e.g., it will return PASS when the internal filter result is REJECT and vice-versa.
filterLogic | If INVERSE then the filter logic will be inverted. |
|
inlineprotected |
Sets the result.
This method sets the result flag for the filter. This value will be combined with the filter logic in order to obtain the return value of GetFilterResult.
result | PASS or REJECT. |
void EA::Filter::SetFilterStatus | ( | FilterStatus | status | ) |
Toggles on and off filtering.
By disabling the filter the result of GetFilterResult will always be PASS, regardless of the internal filter result.
status | If DISABLED, filtering will be disabled. |
|
private |