sneedmc/launcher/pathmatcher/FSTreeMatcher.h

22 lines
430 B
C
Raw Normal View History

2015-10-11 17:56:31 +00:00
#pragma once
#include "IPathMatcher.h"
#include <SeparatorPrefixTree.h>
#include <QRegularExpression>
class FSTreeMatcher : public IPathMatcher
{
public:
2018-07-15 12:51:05 +00:00
virtual ~FSTreeMatcher() {};
FSTreeMatcher(SeparatorPrefixTree<'/'> & tree) : m_fsTree(tree)
{
}
2018-07-15 12:51:05 +00:00
virtual bool matches(const QString &string) const override
{
return m_fsTree.covers(string);
}
2018-07-15 12:51:05 +00:00
SeparatorPrefixTree<'/'> & m_fsTree;
};