1.01.12
C++ Simulated Travel-Oriented Distribution System Library
Toggle main menu visibility
Loading...
Searching...
No Matches
SimulationMode.hpp
Go to the documentation of this file.
1
#ifndef __TVLSIM_BAS_SIMULATIONMODE_HPP
2
#define __TVLSIM_BAS_SIMULATIONMODE_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
// StdAir
10
#include <stdair/basic/StructAbstract.hpp>
11
12
namespace
TVLSIM
{
13
17
struct
SimulationMode
:
public
stdair::StructAbstract {
18
public
:
19
typedef
enum
{
20
START
= 0,
21
RUNNING
,
22
BREAK
,
23
DONE
,
24
LAST_VALUE
25
} EN_SimulationMode;
26
30
static
const
std::string&
getLabel
(
const
EN_SimulationMode&);
31
35
static
EN_SimulationMode
getMode
(
const
char
);
36
40
static
char
getModeLabel
(
const
EN_SimulationMode&);
41
45
static
std::string
getModeLabelAsString
(
const
EN_SimulationMode&);
46
50
static
std::string
describeLabels
();
51
55
EN_SimulationMode
getMode
()
const
;
56
60
char
getModeAsChar
()
const
;
61
65
std::string
getModeAsString
()
const
;
66
70
const
std::string
describe
()
const
;
71
72
public
:
76
void
setMode
(
const
EN_SimulationMode
& iEN_SimulationMode) {
77
_mode = iEN_SimulationMode;
78
}
79
80
public
:
84
bool
operator==
(
const
EN_SimulationMode&)
const
;
85
86
public
:
90
SimulationMode
(
const
EN_SimulationMode
&);
91
95
SimulationMode
(
const
char
);
96
100
SimulationMode
(
const
std::string&);
101
105
SimulationMode
(
const
SimulationMode
&);
106
107
private
:
111
SimulationMode
();
112
113
114
private
:
118
static
const
std::string _labels[
LAST_VALUE
];
119
123
static
const
char
_modeLabels[
LAST_VALUE
];
124
125
126
private
:
127
// //////// Attributes /////////
131
EN_SimulationMode
_mode;
132
};
133
134
}
135
#endif
// __TVLSIM_BAS_SIMULATIONMODE_HPP
TVLSIM
Definition
BasConst.cpp:7
TVLSIM::SimulationMode::getModeAsChar
char getModeAsChar() const
Definition
SimulationMode.cpp:116
TVLSIM::SimulationMode::getModeAsString
std::string getModeAsString() const
Definition
SimulationMode.cpp:109
TVLSIM::SimulationMode::operator==
bool operator==(const EN_SimulationMode &) const
Definition
SimulationMode.cpp:130
TVLSIM::SimulationMode::describe
const std::string describe() const
Definition
SimulationMode.cpp:122
TVLSIM::SimulationMode::getModeLabelAsString
static std::string getModeLabelAsString(const EN_SimulationMode &)
Definition
SimulationMode.cpp:85
TVLSIM::SimulationMode::SimulationMode
SimulationMode(const EN_SimulationMode &)
TVLSIM::SimulationMode::EN_SimulationMode
EN_SimulationMode
Definition
SimulationMode.hpp:19
TVLSIM::SimulationMode::DONE
@ DONE
Definition
SimulationMode.hpp:23
TVLSIM::SimulationMode::RUNNING
@ RUNNING
Definition
SimulationMode.hpp:21
TVLSIM::SimulationMode::LAST_VALUE
@ LAST_VALUE
Definition
SimulationMode.hpp:24
TVLSIM::SimulationMode::START
@ START
Definition
SimulationMode.hpp:20
TVLSIM::SimulationMode::BREAK
@ BREAK
Definition
SimulationMode.hpp:22
TVLSIM::SimulationMode::getModeLabel
static char getModeLabel(const EN_SimulationMode &)
Definition
SimulationMode.cpp:79
TVLSIM::SimulationMode::getLabel
static const std::string & getLabel(const EN_SimulationMode &)
Definition
SimulationMode.cpp:74
TVLSIM::SimulationMode::getMode
EN_SimulationMode getMode() const
Definition
SimulationMode.cpp:104
TVLSIM::SimulationMode::describeLabels
static std::string describeLabels()
Definition
SimulationMode.cpp:92
TVLSIM::SimulationMode::setMode
void setMode(const EN_SimulationMode &iEN_SimulationMode)
Definition
SimulationMode.hpp:76
Generated on
for TvlSim by
1.17.0