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