SimulationState.cpp
Go to the documentation of this file.
1 #include "SimulationState.hpp"
2 
3 namespace iv
4 {
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 
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 
29 {
30  return this->cm.instance();
31 }
32 
33 }