OTest2
A C++ testing framework
runnerfilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Ondrej Starek
3  *
4  * This file is part of OTest2.
5  *
6  * OTest2 is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License,
9  * or (at your option) any later version.
10  *
11  * OTest2 is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14  * License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with OTest2. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef OTest2__INCLUDE_OTEST2_RUNNERFILTER_H_
21 #define OTest2__INCLUDE_OTEST2_RUNNERFILTER_H_
22 
23 #include <string>
24 
25 namespace OTest2 {
26 
27 class TagsStack;
28 
35 class RunnerFilter {
36  public:
37  /* -- avoid copying */
39  const RunnerFilter&) = delete;
41  const RunnerFilter&) = delete;
42 
46  RunnerFilter();
47 
51  virtual ~RunnerFilter();
52 
61  virtual bool filterPath(
62  const TagsStack& path_) const noexcept = 0;
63 };
64 
65 } /* namespace OTest2 */
66 
67 #endif /* OTest2__INCLUDE_OTEST2_RUNNERFILTER_H_ */
OTest2::RunnerFilter::RunnerFilter
RunnerFilter()
Ctor.
Definition: runnerfilter.cpp:24
OTest2::RunnerFilter
Generic interface of a runner filter.
Definition: runnerfilter.h:35
OTest2
Definition: assertbean.h:25
OTest2::RunnerFilter::~RunnerFilter
virtual ~RunnerFilter()
Dtor.
Definition: runnerfilter.cpp:28
OTest2::TagsStack
Stack of assigned tags.
Definition: tagsstack.h:36
OTest2::RunnerFilter::operator=
RunnerFilter & operator=(const RunnerFilter &)=delete
OTest2::RunnerFilter::filterPath
virtual bool filterPath(const TagsStack &path_) const noexcept=0
Check whether the path should be filtered.