pollymc/api/logic/pathmatcher/FSTreeMatcher.h
2018-07-15 14:51:05 +02:00

22 lines
430 B
C++

#pragma once
#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) const override
{
return m_fsTree.covers(string);
}
SeparatorPrefixTree<'/'> & m_fsTree;
};