summaryrefslogtreecommitdiffstats
path: root/logic/pathmatcher/FSTreeMatcher.h
blob: f99e45c98d6aa6a0fe63d7a24934b5210fd8f99b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
};