|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Regex-based matching using std::regex. More...
#include <IFilterStrategy.hpp>


Public Member Functions | |
| RegexFilterStrategy ()=default | |
| RegexFilterStrategy (const RegexFilterStrategy &) noexcept | |
| RegexFilterStrategy & | operator= (const RegexFilterStrategy &) noexcept |
| bool | matches (const std::string &value, const std::string &pattern, bool caseSensitive) const override |
| Match a value against the pattern. | |
| bool | isValidPattern (const std::string &pattern) const override |
| Validate pattern syntax. | |
| std::string | getName () const override |
| Get strategy name for serialization/debugging. | |
| std::unique_ptr< IFilterStrategy > | clone () const override |
| Clone this strategy (for copy semantics) | |
Private Attributes | |
| std::mutex | m_cacheMutex |
| std::string | m_cachedPattern |
| bool | m_cachedCaseSensitive {false} |
| bool | m_hasCachedRegex {false} |
| std::regex | m_cachedRegex |
Regex-based matching using std::regex.
Default strategy providing full regex support. Patterns are compiled once for efficiency.
|
default |
|
inlinenoexcept |
|
inlineoverridevirtual |
Clone this strategy (for copy semantics)
Implements filters::IFilterStrategy.
|
inlineoverridevirtual |
Get strategy name for serialization/debugging.
Implements filters::IFilterStrategy.
|
overridevirtual |
Validate pattern syntax.
| pattern | The pattern to validate |
Used to provide early feedback when constructing filters.
Implements filters::IFilterStrategy.
|
overridevirtual |
Match a value against the pattern.
| value | The string to test |
| pattern | The pattern to match against |
| caseSensitive | Whether matching should be case-sensitive |
Implements filters::IFilterStrategy.

|
inlinenoexcept |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |
|
mutableprivate |