Nix (Dev)
3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
enums.hpp
Go to the documentation of this file.
1
#ifndef IV_SRC_MODEL_CONTROL_ENUMS_HPP_
2
#define IV_SRC_MODEL_CONTROL_ENUMS_HPP_
3
4
#include "
core/assert.hpp
"
5
6
#include <string>
7
8
namespace
iv::model::control
9
{
10
11
enum class
eControlType
12
{
13
Valve
,
14
Damper
15
};
16
17
namespace
valve
18
{
19
20
enum class
eValveSystem
21
{
22
Ballast
,
23
Transfer
,
24
Bilge
,
25
Fire
,
26
FiFi
,
27
FreshWater
,
28
SeaWater
,
29
Cooling_HT
,
30
Cooling_LT
,
31
Cooling_Water
,
32
Oil_Recovery
,
33
Miscellaneous
34
};
35
36
inline
std::string
valveSystemAbbreviation
(
eValveSystem
valveSystem)
37
{
38
switch
(valveSystem)
39
{
40
case
eValveSystem::Ballast
:
41
return
"BAL"
;
42
case
eValveSystem::Transfer
:
43
return
"TRF"
;
44
case
eValveSystem::Bilge
:
45
return
"BIL"
;
46
case
eValveSystem::Fire
:
47
return
"FIR"
;
48
case
eValveSystem::FiFi
:
49
return
"FF"
;
50
case
eValveSystem::FreshWater
:
51
return
"FW"
;
52
case
eValveSystem::SeaWater
:
53
return
"SW"
;
54
case
eValveSystem::Cooling_HT
:
55
return
"HT"
;
56
case
eValveSystem::Cooling_LT
:
57
return
"LT"
;
58
case
eValveSystem::Cooling_Water
:
59
return
"CW"
;
60
case
eValveSystem::Oil_Recovery
:
61
return
"ORO"
;
62
case
eValveSystem::Miscellaneous
:
63
return
"MISC"
;
64
default
:
65
IV_ASSERT_UNREACHABLE
();
66
return
""
;
67
}
68
}
69
70
enum class
eValveType
71
{
72
Simple
,
73
Double
,
74
};
75
76
enum class
eLomAvailability
77
{
78
Available
,
79
Unavailable
,
80
OnlyOutputAvailable
81
};
82
83
}
// namespace valve
84
85
namespace
damper
86
{
87
88
enum class
eDamperType
89
{
90
Simple
,
91
Double
,
92
};
93
94
enum class
eLomAvailability
95
{
96
Available
,
97
Unavailable
,
98
OnlyOutputAvailable
99
};
100
101
}
// namespace damper
102
103
}
// namespace iv::model::control
104
105
#endif
//IV_SRC_MODEL_CONTROL_ENUMS_HPP_
assert.hpp
IV_ASSERT_UNREACHABLE
#define IV_ASSERT_UNREACHABLE()
Definition
assert.hpp:146
iv::model::control::Damper
Definition
Damper.hpp:13
iv::model::control::damper::eLomAvailability
eLomAvailability
Definition
enums.hpp:95
iv::model::control::damper::eLomAvailability::Unavailable
@ Unavailable
iv::model::control::damper::eLomAvailability::OnlyOutputAvailable
@ OnlyOutputAvailable
iv::model::control::damper::eLomAvailability::Available
@ Available
iv::model::control::damper::eDamperType
eDamperType
Definition
enums.hpp:89
iv::model::control::damper::eDamperType::Simple
@ Simple
iv::model::control::damper::eDamperType::Double
@ Double
iv::model::control::valve::eValveType
eValveType
Definition
enums.hpp:71
iv::model::control::valve::eValveType::Simple
@ Simple
iv::model::control::valve::eValveType::Double
@ Double
iv::model::control::valve::valveSystemAbbreviation
std::string valveSystemAbbreviation(eValveSystem valveSystem)
Definition
enums.hpp:36
iv::model::control::valve::eValveSystem
eValveSystem
Definition
enums.hpp:21
iv::model::control::valve::eValveSystem::Cooling_LT
@ Cooling_LT
iv::model::control::valve::eValveSystem::FreshWater
@ FreshWater
iv::model::control::valve::eValveSystem::SeaWater
@ SeaWater
iv::model::control::valve::eValveSystem::Miscellaneous
@ Miscellaneous
iv::model::control::valve::eValveSystem::Bilge
@ Bilge
iv::model::control::valve::eValveSystem::Oil_Recovery
@ Oil_Recovery
iv::model::control::valve::eValveSystem::Transfer
@ Transfer
iv::model::control::valve::eValveSystem::Cooling_HT
@ Cooling_HT
iv::model::control::valve::eValveSystem::FiFi
@ FiFi
iv::model::control::valve::eValveSystem::Ballast
@ Ballast
iv::model::control::valve::eValveSystem::Cooling_Water
@ Cooling_Water
iv::model::control::valve::eValveSystem::Fire
@ Fire
iv::model::control::valve::eLomAvailability
eLomAvailability
Definition
enums.hpp:77
iv::model::control::valve::eLomAvailability::Unavailable
@ Unavailable
iv::model::control::valve::eLomAvailability::OnlyOutputAvailable
@ OnlyOutputAvailable
iv::model::control::valve::eLomAvailability::Available
@ Available
iv::model::control
Definition
ControlManager.cpp:4
iv::model::control::eControlType
eControlType
Definition
enums.hpp:12
iv::model::control::eControlType::Valve
@ Valve
src
model
control
enums.hpp
Generated by
1.12.0