|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Abstract strategy interface for filter matching. More...
#include <IFilterStrategy.hpp>


Public Member Functions | |
| virtual | ~IFilterStrategy ()=default |
| virtual bool | matches (const std::string &value, const std::string &pattern, bool caseSensitive) const =0 |
| Match a value against the pattern. | |
| virtual bool | isValidPattern (const std::string &pattern) const =0 |
| Validate pattern syntax. | |
| virtual std::string | getName () const =0 |
| Get strategy name for serialization/debugging. | |
| virtual std::unique_ptr< IFilterStrategy > | clone () const =0 |
| Clone this strategy (for copy semantics) | |
Abstract strategy interface for filter matching.
Defines the contract for all filter matching strategies. Concrete strategies implement different matching algorithms.
Immutability: Strategy instances should be immutable after construction to ensure thread safety for concurrent filter evaluations.
|
virtualdefault |
|
pure virtual |
Clone this strategy (for copy semantics)
Implemented in filters::RegexFilterStrategy, filters::ExactMatchStrategy, filters::FuzzyMatchStrategy, and filters::WildcardStrategy.
|
pure virtual |
Get strategy name for serialization/debugging.
Implemented in filters::RegexFilterStrategy, filters::ExactMatchStrategy, filters::FuzzyMatchStrategy, and filters::WildcardStrategy.
|
pure virtual |
Validate pattern syntax.
| pattern | The pattern to validate |
Used to provide early feedback when constructing filters.
Implemented in filters::ExactMatchStrategy, filters::WildcardStrategy, filters::RegexFilterStrategy, and filters::FuzzyMatchStrategy.
|
pure virtual |
Match a value against the pattern.
| value | The string to test |
| pattern | The pattern to match against |
| caseSensitive | Whether matching should be case-sensitive |
Implemented in filters::RegexFilterStrategy, filters::ExactMatchStrategy, filters::FuzzyMatchStrategy, and filters::WildcardStrategy.