pollymc/api/logic/pathmatcher/FSTreeMatcher.h

22 lines
400 B
C
Raw Normal View History

2015-10-11 23:26:31 +05:30
#pragma once
#include "IPathMatcher.h"
#include <SeparatorPrefixTree.h>
#include <QRegularExpression>
class FSTreeMatcher : public IPathMatcher
{
public:
virtual ~FSTreeMatcher() {};
FSTreeMatcher(SeparatorPrefixTree<'/'> & tree) : m_fsTree(tree)
{
}
2015-10-11 23:26:31 +05:30
virtual bool matches(const QString &string) const override
{
return m_fsTree.covers(string);
}
SeparatorPrefixTree<'/'> & m_fsTree;
};