2015-10-11 23:26:31 +05:30
|
|
|
#pragma once
|
|
|
|
|
2015-08-18 05:55:24 +05:30
|
|
|
#include "IPathMatcher.h"
|
|
|
|
#include <SeparatorPrefixTree.h>
|
|
|
|
#include <QRegularExpression>
|
|
|
|
|
|
|
|
class FSTreeMatcher : public IPathMatcher
|
|
|
|
{
|
|
|
|
public:
|
2018-07-15 18:21:05 +05:30
|
|
|
virtual ~FSTreeMatcher() {};
|
|
|
|
FSTreeMatcher(SeparatorPrefixTree<'/'> & tree) : m_fsTree(tree)
|
|
|
|
{
|
|
|
|
}
|
2015-08-18 05:55:24 +05:30
|
|
|
|
2021-11-03 20:15:42 +05:30
|
|
|
bool matches(const QString &string) const override
|
2018-07-15 18:21:05 +05:30
|
|
|
{
|
|
|
|
return m_fsTree.covers(string);
|
|
|
|
}
|
2015-08-18 05:55:24 +05:30
|
|
|
|
2018-07-15 18:21:05 +05:30
|
|
|
SeparatorPrefixTree<'/'> & m_fsTree;
|
2015-08-18 05:55:24 +05:30
|
|
|
};
|