Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
iv_components
Simulation
SimulationState.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
ivorium.hpp
>
4
5
namespace
comp
6
{
7
11
class
SimulationState
12
{
13
public
:
14
enum
State
15
{
16
Empty
,
17
Running
,
18
Paused
,
19
Ended
20
};
21
22
public
:
23
iv::ClientMarker
cm
;
24
SimulationState
(
iv::Instance
* inst );
25
iv::Instance
*
instance
();
26
27
// write
28
iv::SharedAttr< iv::Activator >
restart
;
29
iv::SharedAttr< iv::Activator >
end
;
30
iv::SharedAttr< bool >
pause
;
31
32
// read
33
iv::SharedAttr< State >
state
;
34
35
//
36
iv::SharedAttr< long >
time_ms
;
37
};
38
39
}
40
41
//------------------- StringIO --------------------
42
namespace
iv
43
{
44
template
<>
45
struct
StringIO
<
comp
::SimulationState::State > :
public
StringIO_Table
< comp::SimulationState::State >
46
{
47
static
const
ValuesType
Values
;
48
};
49
}