NOISSUE reorganize and document libraries
This commit is contained in:
parent
47e37635f5
commit
b6d455a02b
368 changed files with 159 additions and 275 deletions
21
api/logic/pathmatcher/FSTreeMatcher.h
Normal file
21
api/logic/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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue