diff options
Diffstat (limited to 'logic/pathmatcher/FSTreeMatcher.h')
-rw-r--r-- | logic/pathmatcher/FSTreeMatcher.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/logic/pathmatcher/FSTreeMatcher.h b/logic/pathmatcher/FSTreeMatcher.h new file mode 100644 index 00000000..f99e45c9 --- /dev/null +++ b/logic/pathmatcher/FSTreeMatcher.h @@ -0,0 +1,19 @@ +#include "IPathMatcher.h" +#include <SeparatorPrefixTree.h> +#include <QRegularExpression> + +class FSTreeMatcher : public IPathMatcher +{ +public: + virtual ~FSTreeMatcher() {}; + FSTreeMatcher(SeparatorPrefixTree<'/'> & tree) : m_fsTree(tree) + { + } + + virtual bool matches(const QString &string) override + { + return m_fsTree.covers(string); + } + + SeparatorPrefixTree<'/'> & m_fsTree; +}; |