Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
iv_components
Simulation
SimulationState.cpp
Go to the documentation of this file.
1
#include "
SimulationState.hpp
"
2
3
namespace
iv
4
{
5
const
StringIO< comp::SimulationState::State >::ValuesType
StringIO< comp::SimulationState::State >::Values
=
6
{
7
{ comp::SimulationState::State::Empty,
"Empty"
},
8
{ comp::SimulationState::State::Running,
"Running"
},
9
{ comp::SimulationState::State::Paused,
"Paused"
},
10
{ comp::SimulationState::State::Ended,
"Ended"
}
11
};
12
13
}
14
15
namespace
comp
16
{
17
18
SimulationState::SimulationState
(
iv::Instance
* inst ) :
19
cm( inst, this,
"SimulationState"
),
20
restart( &this->cm ),
21
end( &this->cm ),
22
pause( &this->cm ),
23
state( &this->cm,
SimulationState
::Empty ),
24
time_ms( &this->cm, 0 )
25
{
26
}
27
28
iv::Instance
*
SimulationState::instance
()
29
{
30
return
this->
cm
.
instance
();
31
}
32
33
}