mirror of
https://github.com/BeneficialCode/WinArk
synced 2026-08-09 12:00:31 +00:00
18 lines
567 B
C++
18 lines
567 B
C++
#include "stdafx.h"
|
|
#include "PropertyValueFilter.h"
|
|
#include "EventData.h"
|
|
#include "FormatHelper.h"
|
|
|
|
PropertyValueFilter::PropertyValueFilter(std::wstring name, CompareType type, FilterAction action)
|
|
:StringCompareFilterBase(L"Property Value", name, type, action) {
|
|
}
|
|
|
|
FilterAction PropertyValueFilter::Eval(FilterContext& context) const {
|
|
auto action = FilterAction::None;
|
|
for (auto& prop : context.Data->GetProperties()) {
|
|
action = Compare(FormatHelper::FormatProperty(context.Data, prop));
|
|
if (action == GetAction())
|
|
return action;
|
|
}
|
|
return action;
|
|
} |