OTest2
A C++ testing framework
include
otest2
scenariocontainer.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_SCENARIOCONTAINER_H_
21
#define OTest2_INCLUDE_OTEST2_SCENARIOCONTAINER_H_
22
23
#include <string>
24
25
#include <
otest2/scenario.h
>
26
#include <
otest2/scenariocontainerptr.h
>
27
#include <
otest2/scenarioptr.h
>
28
29
namespace
OTest2
{
30
34
class
ScenarioContainer
:
public
Scenario
{
35
public
:
39
ScenarioContainer
();
40
44
virtual
~ScenarioContainer
();
45
46
/* -- avoid copying */
47
ScenarioContainer
(
48
const
ScenarioContainer
&) =
delete
;
49
ScenarioContainer
&
operator =
(
50
const
ScenarioContainer
&) =
delete
;
51
57
virtual
void
appendScenario
(
58
ScenarioPtr
scenario_) = 0;
59
63
virtual
bool
isEmpty
()
const
noexcept = 0;
64
};
65
66
}
/* -- namespace OTest2 */
67
68
#endif
/* -- OTest2_INCLUDE_OTEST2_SCENARIOCONTAINER_H_ */
OTest2::ScenarioContainer::operator=
ScenarioContainer & operator=(const ScenarioContainer &)=delete
OTest2::ScenarioContainer::isEmpty
virtual bool isEmpty() const noexcept=0
Check whether the container is empty.
OTest2::ScenarioContainer
Generic interface of a scenario container.
Definition:
scenariocontainer.h:34
OTest2::ScenarioContainer::appendScenario
virtual void appendScenario(ScenarioPtr scenario_)=0
Append new sub-scenario into the container.
OTest2
Definition:
assertbean.h:25
OTest2::ScenarioPtr
std::shared_ptr< Scenario > ScenarioPtr
Shared pointer of the scenario object.
Definition:
scenarioptr.h:27
OTest2::ScenarioContainer::~ScenarioContainer
virtual ~ScenarioContainer()
Dtor.
Definition:
scenariocontainer.cpp:27
scenario.h
OTest2::ScenarioContainer::ScenarioContainer
ScenarioContainer()
Ctor.
Definition:
scenariocontainer.cpp:23
scenariocontainerptr.h
OTest2::Scenario
Generic scenario object.
Definition:
scenario.h:47
scenarioptr.h
Generated by
1.8.17