OTest2
A C++ testing framework
repeater.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 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_REPEATER_H_
21 #define OTest2_INCLUDE_OTEST2_REPEATER_H_
22 
23 #include <string>
24 
25 namespace OTest2 {
26 
27 class Context;
28 
48 class Repeater {
49  public:
50  /* -- avoid copying */
51  Repeater(
52  const Repeater&) = delete;
54  const Repeater&) = delete;
55 
59  Repeater();
60 
64  virtual ~Repeater();
65 
72  virtual bool hasNextRun(
73  const Context& context_) const noexcept = 0;
74 };
75 
76 } /* -- namespace OTest2 */
77 
78 #endif /* -- OTest2_INCLUDE_OTEST2_REPEATER_H_ */
OTest2::Repeater::hasNextRun
virtual bool hasNextRun(const Context &context_) const noexcept=0
Check whether there is a next run prepared.
OTest2::Repeater::operator=
Repeater & operator=(const Repeater &)=delete
OTest2::Repeater::~Repeater
virtual ~Repeater()
Dtor.
Definition: repeater.cpp:28
OTest2::Repeater::Repeater
Repeater()
Ctor.
Definition: repeater.cpp:24
OTest2
Definition: assertbean.h:25
OTest2::Repeater
Generic repeater interface.
Definition: repeater.h:48
OTest2::Context
OTest2 runtime context.
Definition: context.h:38