2015-10-11 18:56:31 +01:00
|
|
|
#pragma once
|
|
|
|
|
2015-08-18 01:25:24 +01:00
|
|
|
#include <SeparatorPrefixTree.h>
|
|
|
|
#include <QRegularExpression>
|
2023-08-02 17:35:35 +01:00
|
|
|
#include "IPathMatcher.h"
|
2015-08-18 01:25:24 +01:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
class FSTreeMatcher : public IPathMatcher {
|
|
|
|
public:
|
|
|
|
virtual ~FSTreeMatcher(){};
|
|
|
|
FSTreeMatcher(SeparatorPrefixTree<'/'>& tree) : m_fsTree(tree) {}
|
2015-08-18 01:25:24 +01:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
bool matches(const QString& string) const override { return m_fsTree.covers(string); }
|
2015-08-18 01:25:24 +01:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
SeparatorPrefixTree<'/'>& m_fsTree;
|
2015-08-18 01:25:24 +01:00
|
|
|
};
|