NOISSUE Flatten gui and logic libraries into MultiMC
This commit is contained in:
21
launcher/pathmatcher/FSTreeMatcher.h
Normal file
21
launcher/pathmatcher/FSTreeMatcher.h
Normal file
@ -0,0 +1,21 @@
|
||||
#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;
|
||||
};
|
Reference in New Issue
Block a user