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_CORE_ENUMS_HPP_
2
#define IV_SRC_CORE_ENUMS_HPP_
3
4
#include <cstdint>
5
#include <string_view>
6
7
namespace
iv
8
{
9
13
enum class
eDayOfWeek
14
{
15
Monday
= 1,
16
Tuesday
= 2,
17
Wednesday
= 3,
18
Thursday
= 4,
19
Friday
= 5,
20
Saturday
= 6,
21
Sunday
= 0
22
};
23
24
enum class
eImageFormat
25
{
26
SVG
,
27
PNG
,
28
JPG
,
29
BMP
,
30
GIF
,
31
TIFF
32
};
33
34
std::string
getExtensionForFormat
(
const
iv::eImageFormat
&imageFormat);
35
36
enum class
eLanguage
37
{
38
English
,
39
French
,
40
German
,
41
Spanish
,
42
Portuguese
43
};
44
45
enum class
eState
46
{
47
Initialized
,
48
Running
,
49
Stopped
,
50
Uninitialized
51
};
52
53
enum class
eProcessingState
54
{
55
Start
,
56
Stop
57
};
58
59
enum class
eProgramCaller
60
{
61
Diamar
,
62
DiamarEditor
,
63
DiamarRepeater
,
64
Nereida
,
65
NereidaEditor
66
};
67
71
enum class
eFontAlignment
72
{
73
Centre
,
74
Justify
,
75
Left
,
76
Right
77
};
78
79
enum class
eFontSlant
80
{
81
Italic
,
82
Normal
,
83
Oblique
84
};
85
86
enum class
eFontWeight
87
{
88
Bold
,
89
Normal
90
};
91
95
enum class
eDigitalValue
96
{
97
Close
,
98
Open
,
99
Not
100
};
101
102
enum class
eMeasurementUnit
103
{
104
NoUnit
,
105
Ampere
,
106
Bar
,
107
Celsius
,
108
CubicMetre
,
109
Degree
,
110
Fahrenheit
,
111
Gallon
,
112
Hertz
,
113
Hour
,
114
Kelvin
,
115
KilometresPerHour
,
116
Kilowatt
,
117
KiloVoltAmpere
,
118
Knot
,
119
Litre
,
120
LitrePerHour
,
121
LitrePerMinute
,
122
Metre
,
123
Millimetre
,
124
Millisecond
,
125
Minute
,
126
MinuteOfArc
,
127
MmH2O
,
128
NauticalMile
,
129
KiloPascal
,
130
Pascal
,
131
Percentage
,
132
Ppm
,
133
Psi
,
134
RelativeBar
,
135
Rpm
,
136
Second
,
137
SecondOfArc
,
138
SquareMetre
,
139
Tonne
,
140
UnixTimestamp
,
141
Volt
,
142
Watt
,
143
};
144
148
enum class
eGmtArea
149
{
150
P12
= 12,
151
P11
= 11,
152
P10
= 10,
153
P09
= 9,
154
P08
= 8,
155
P07
= 7,
156
P06
= 6,
157
P05
= 5,
158
P04
= 4,
159
P03
= 3,
160
P02
= 2,
161
P01
= 1,
162
P0
= 0,
163
M01
= -1,
164
M02
= -2,
165
M03
= -3,
166
M04
= -4,
167
M05
= -5,
168
M06
= -6,
169
M07
= -7,
170
M08
= -8,
171
M09
= -9,
172
M10
= -10,
173
M11
= -11
174
};
175
176
enum class
eTimeZone
177
{
178
Gmt
,
179
Localtime
180
};
181
182
enum class
eTimeFormat
183
{
184
OnlyDate
,
185
OnlyTime
,
186
HoursAndMinutes
,
187
DateAndTime
,
188
StringFormat
,
189
BackupFormat
,
190
FileFormat
191
};
192
193
enum class
eTimeUnit
194
{
195
Second
,
196
Minute
,
197
Hour
,
198
Day
,
199
Month
,
200
Year
201
};
202
206
enum class
eDataType
207
{
208
Bool
,
209
Int16
,
210
Int32
,
211
Int64
,
212
Uint16
,
213
Uint32
,
214
Uint64
,
215
Float
,
216
Double
217
};
218
219
enum class
eEndianType
220
{
221
BigEndian
,
222
LittleEndian
,
223
BigEndianByteSwapped
,
224
LittleEndianByteSwapped
225
};
226
227
namespace
comms
228
{
229
230
enum class
eLomLine
231
{
232
LineA
= 0,
233
LineB
= 1,
234
LineC
= 2,
235
WatchCallA
= 3,
236
WatchCallB
= 4,
237
};
238
239
enum class
eInterfaceType
240
{
241
Ethernet
,
242
Http
,
243
IxxatUsbV1
,
244
PCanGateway
,
245
SocketCan
,
246
SerialLine
,
247
};
248
249
enum class
eNetworkType
250
{
251
Lom
,
252
Redundancy
,
253
Vdr
,
254
WatchCall
,
255
External
,
256
Api
257
};
258
259
enum class
eProtocolType
260
{
261
Can
,
262
J1939
,
263
Nmea2k
,
264
Modbus
,
265
Nmea0183
,
266
Vdr
,
267
Redundancy
,
268
Loggers
,
269
WatchcallNT
270
};
271
276
enum class
eCommDebugLevels
277
{
278
OnlyCritical
,
279
ErrorOrHigher
,
280
WarningOrHigher
,
281
All
282
};
283
284
enum class
eResponse
285
{
286
Ok
,
287
Timeout
,
288
ConnectionError
,
289
FullError
,
290
NoMessage
,
291
MessageError
,
292
MessageInvalid
,
293
MessageNotAllowed
294
};
295
296
enum class
eHeartbeatState
297
{
298
BootUp
= 0,
299
Offline
= 255,
300
Operational
= 5,
301
PreOperational
= 127,
302
Stopped
= 4
303
};
304
305
enum class
eMessageDirection
306
{
307
Incoming
,
308
Outgoing
309
};
310
311
namespace
modbus
312
{
313
314
enum class
eRegisterType
315
{
316
CoilStatus
,
317
InputStatus
,
318
InputRegister
,
319
HoldingRegister
320
};
321
322
}
// namespace modbus
323
324
namespace
nmea0183
325
{
326
327
enum class
eFieldType
328
{
329
Boolean
,
330
Hexadecimal
,
331
Integer
,
332
Decimal
,
333
String
,
334
NorthPole
,
335
Coordinate
,
336
Time
,
337
Date
338
};
339
340
}
// namespace nmea0183
341
342
}
// namespace comms
343
344
}
// namespace iv
345
346
#endif
//IV_SRC_CORE_ENUMS_HPP_
iv::comms::modbus::eRegisterType
eRegisterType
Definition
enums.hpp:315
iv::comms::modbus::eRegisterType::CoilStatus
@ CoilStatus
iv::comms::modbus::eRegisterType::HoldingRegister
@ HoldingRegister
iv::comms::modbus::eRegisterType::InputStatus
@ InputStatus
iv::comms::modbus::eRegisterType::InputRegister
@ InputRegister
iv::comms::nmea0183::eFieldType
eFieldType
Definition
enums.hpp:328
iv::comms::nmea0183::eFieldType::String
@ String
iv::comms::nmea0183::eFieldType::Boolean
@ Boolean
iv::comms::nmea0183::eFieldType::Hexadecimal
@ Hexadecimal
iv::comms::nmea0183::eFieldType::Date
@ Date
iv::comms::nmea0183::eFieldType::Decimal
@ Decimal
iv::comms::nmea0183::eFieldType::Integer
@ Integer
iv::comms::nmea0183::eFieldType::Time
@ Time
iv::comms::nmea0183::eFieldType::Coordinate
@ Coordinate
iv::comms::nmea0183::eFieldType::NorthPole
@ NorthPole
iv::comms::eNetworkType
eNetworkType
Definition
enums.hpp:250
iv::comms::eNetworkType::Vdr
@ Vdr
iv::comms::eNetworkType::Lom
@ Lom
iv::comms::eNetworkType::Api
@ Api
iv::comms::eNetworkType::WatchCall
@ WatchCall
iv::comms::eNetworkType::External
@ External
iv::comms::eNetworkType::Redundancy
@ Redundancy
iv::comms::eMessageDirection
eMessageDirection
Definition
enums.hpp:306
iv::comms::eMessageDirection::Incoming
@ Incoming
iv::comms::eMessageDirection::Outgoing
@ Outgoing
iv::comms::eCommDebugLevels
eCommDebugLevels
Definition
enums.hpp:277
iv::comms::eCommDebugLevels::WarningOrHigher
@ WarningOrHigher
iv::comms::eCommDebugLevels::ErrorOrHigher
@ ErrorOrHigher
iv::comms::eCommDebugLevels::All
@ All
iv::comms::eCommDebugLevels::OnlyCritical
@ OnlyCritical
iv::comms::eResponse
eResponse
Definition
enums.hpp:285
iv::comms::eResponse::ConnectionError
@ ConnectionError
iv::comms::eResponse::FullError
@ FullError
iv::comms::eResponse::Ok
@ Ok
iv::comms::eResponse::NoMessage
@ NoMessage
iv::comms::eResponse::Timeout
@ Timeout
iv::comms::eResponse::MessageError
@ MessageError
iv::comms::eResponse::MessageInvalid
@ MessageInvalid
iv::comms::eResponse::MessageNotAllowed
@ MessageNotAllowed
iv::comms::eProtocolType
eProtocolType
Definition
enums.hpp:260
iv::comms::eProtocolType::Nmea0183
@ Nmea0183
iv::comms::eProtocolType::WatchcallNT
@ WatchcallNT
iv::comms::eProtocolType::Loggers
@ Loggers
iv::comms::eProtocolType::Modbus
@ Modbus
iv::comms::eProtocolType::Can
@ Can
iv::comms::eProtocolType::Nmea2k
@ Nmea2k
iv::comms::eProtocolType::J1939
@ J1939
iv::comms::eInterfaceType
eInterfaceType
Definition
enums.hpp:240
iv::comms::eInterfaceType::SerialLine
@ SerialLine
iv::comms::eInterfaceType::Http
@ Http
iv::comms::eInterfaceType::Ethernet
@ Ethernet
iv::comms::eInterfaceType::SocketCan
@ SocketCan
iv::comms::eInterfaceType::PCanGateway
@ PCanGateway
iv::comms::eInterfaceType::IxxatUsbV1
@ IxxatUsbV1
iv::comms::eHeartbeatState
eHeartbeatState
Definition
enums.hpp:297
iv::comms::eHeartbeatState::BootUp
@ BootUp
iv::comms::eHeartbeatState::Operational
@ Operational
iv::comms::eHeartbeatState::PreOperational
@ PreOperational
iv::comms::eHeartbeatState::Offline
@ Offline
iv::comms::eHeartbeatState::Stopped
@ Stopped
iv::comms::eLomLine
eLomLine
Definition
enums.hpp:231
iv::comms::eLomLine::WatchCallB
@ WatchCallB
iv::comms::eLomLine::LineA
@ LineA
iv::comms::eLomLine::WatchCallA
@ WatchCallA
iv::comms::eLomLine::LineB
@ LineB
iv::comms::eLomLine::LineC
@ LineC
iv
Definition
AlarmsManager.cpp:18
iv::eProcessingState
eProcessingState
Definition
enums.hpp:54
iv::eProcessingState::Stop
@ Stop
iv::eProcessingState::Start
@ Start
iv::eTimeUnit
eTimeUnit
Definition
enums.hpp:194
iv::eTimeUnit::Day
@ Day
iv::eTimeUnit::Year
@ Year
iv::eTimeUnit::Month
@ Month
iv::eDigitalValue
eDigitalValue
Definition
enums.hpp:96
iv::eDigitalValue::Not
@ Not
iv::eDigitalValue::Open
@ Open
iv::eDigitalValue::Close
@ Close
iv::eState
eState
Definition
enums.hpp:46
iv::eState::Initialized
@ Initialized
iv::eState::Running
@ Running
iv::eState::Stopped
@ Stopped
iv::eState::Uninitialized
@ Uninitialized
iv::getExtensionForFormat
std::string getExtensionForFormat(const iv::eImageFormat &imageFormat)
Definition
enums.cpp:8
iv::eTimeFormat
eTimeFormat
Definition
enums.hpp:183
iv::eTimeFormat::StringFormat
@ StringFormat
iv::eTimeFormat::DateAndTime
@ DateAndTime
iv::eTimeFormat::OnlyTime
@ OnlyTime
iv::eTimeFormat::HoursAndMinutes
@ HoursAndMinutes
iv::eTimeFormat::FileFormat
@ FileFormat
iv::eTimeFormat::BackupFormat
@ BackupFormat
iv::eTimeFormat::OnlyDate
@ OnlyDate
iv::eFontWeight
eFontWeight
Definition
enums.hpp:87
iv::eFontWeight::Bold
@ Bold
iv::eImageFormat
eImageFormat
Definition
enums.hpp:25
iv::eImageFormat::PNG
@ PNG
iv::eImageFormat::JPG
@ JPG
iv::eImageFormat::GIF
@ GIF
iv::eImageFormat::BMP
@ BMP
iv::eImageFormat::SVG
@ SVG
iv::eImageFormat::TIFF
@ TIFF
iv::eLanguage
eLanguage
Definition
enums.hpp:37
iv::eLanguage::Portuguese
@ Portuguese
iv::eLanguage::English
@ English
iv::eLanguage::German
@ German
iv::eLanguage::French
@ French
iv::eLanguage::Spanish
@ Spanish
iv::eEndianType
eEndianType
Definition
enums.hpp:220
iv::eEndianType::LittleEndianByteSwapped
@ LittleEndianByteSwapped
iv::eEndianType::BigEndian
@ BigEndian
iv::eEndianType::LittleEndian
@ LittleEndian
iv::eEndianType::BigEndianByteSwapped
@ BigEndianByteSwapped
iv::eDayOfWeek
eDayOfWeek
Definition
enums.hpp:14
iv::eDayOfWeek::Tuesday
@ Tuesday
iv::eDayOfWeek::Monday
@ Monday
iv::eDayOfWeek::Thursday
@ Thursday
iv::eDayOfWeek::Wednesday
@ Wednesday
iv::eDayOfWeek::Saturday
@ Saturday
iv::eDayOfWeek::Sunday
@ Sunday
iv::eDayOfWeek::Friday
@ Friday
iv::eProgramCaller
eProgramCaller
Definition
enums.hpp:60
iv::eProgramCaller::DiamarRepeater
@ DiamarRepeater
iv::eProgramCaller::NereidaEditor
@ NereidaEditor
iv::eProgramCaller::Nereida
@ Nereida
iv::eProgramCaller::Diamar
@ Diamar
iv::eProgramCaller::DiamarEditor
@ DiamarEditor
iv::eFontAlignment
eFontAlignment
Definition
enums.hpp:72
iv::eFontAlignment::Centre
@ Centre
iv::eFontAlignment::Justify
@ Justify
iv::eFontAlignment::Right
@ Right
iv::eFontAlignment::Left
@ Left
iv::eTimeZone
eTimeZone
Definition
enums.hpp:177
iv::eTimeZone::Localtime
@ Localtime
iv::eTimeZone::Gmt
@ Gmt
iv::eFontSlant
eFontSlant
Definition
enums.hpp:80
iv::eFontSlant::Oblique
@ Oblique
iv::eFontSlant::Italic
@ Italic
iv::eFontSlant::Normal
@ Normal
iv::eMeasurementUnit
eMeasurementUnit
Definition
enums.hpp:103
iv::eMeasurementUnit::Metre
@ Metre
iv::eMeasurementUnit::LitrePerHour
@ LitrePerHour
iv::eMeasurementUnit::Ppm
@ Ppm
iv::eMeasurementUnit::UnixTimestamp
@ UnixTimestamp
iv::eMeasurementUnit::NauticalMile
@ NauticalMile
iv::eMeasurementUnit::KiloPascal
@ KiloPascal
iv::eMeasurementUnit::Litre
@ Litre
iv::eMeasurementUnit::Celsius
@ Celsius
iv::eMeasurementUnit::RelativeBar
@ RelativeBar
iv::eMeasurementUnit::MmH2O
@ MmH2O
iv::eMeasurementUnit::LitrePerMinute
@ LitrePerMinute
iv::eMeasurementUnit::Ampere
@ Ampere
iv::eMeasurementUnit::Percentage
@ Percentage
iv::eMeasurementUnit::KiloVoltAmpere
@ KiloVoltAmpere
iv::eMeasurementUnit::Knot
@ Knot
iv::eMeasurementUnit::Minute
@ Minute
iv::eMeasurementUnit::Degree
@ Degree
iv::eMeasurementUnit::Tonne
@ Tonne
iv::eMeasurementUnit::Kelvin
@ Kelvin
iv::eMeasurementUnit::NoUnit
@ NoUnit
iv::eMeasurementUnit::CubicMetre
@ CubicMetre
iv::eMeasurementUnit::Millisecond
@ Millisecond
iv::eMeasurementUnit::Watt
@ Watt
iv::eMeasurementUnit::Hour
@ Hour
iv::eMeasurementUnit::KilometresPerHour
@ KilometresPerHour
iv::eMeasurementUnit::Rpm
@ Rpm
iv::eMeasurementUnit::Millimetre
@ Millimetre
iv::eMeasurementUnit::Second
@ Second
iv::eMeasurementUnit::SecondOfArc
@ SecondOfArc
iv::eMeasurementUnit::Pascal
@ Pascal
iv::eMeasurementUnit::Psi
@ Psi
iv::eMeasurementUnit::Fahrenheit
@ Fahrenheit
iv::eMeasurementUnit::Gallon
@ Gallon
iv::eMeasurementUnit::Bar
@ Bar
iv::eMeasurementUnit::SquareMetre
@ SquareMetre
iv::eMeasurementUnit::Volt
@ Volt
iv::eMeasurementUnit::Hertz
@ Hertz
iv::eMeasurementUnit::MinuteOfArc
@ MinuteOfArc
iv::eMeasurementUnit::Kilowatt
@ Kilowatt
iv::eDataType
eDataType
Definition
enums.hpp:207
iv::eDataType::Float
@ Float
iv::eDataType::Uint32
@ Uint32
iv::eDataType::Uint16
@ Uint16
iv::eDataType::Int16
@ Int16
iv::eDataType::Int32
@ Int32
iv::eDataType::Bool
@ Bool
iv::eDataType::Uint64
@ Uint64
iv::eDataType::Double
@ Double
iv::eDataType::Int64
@ Int64
iv::eGmtArea
eGmtArea
Definition
enums.hpp:149
iv::eGmtArea::P01
@ P01
iv::eGmtArea::P04
@ P04
iv::eGmtArea::P0
@ P0
iv::eGmtArea::P05
@ P05
iv::eGmtArea::P07
@ P07
iv::eGmtArea::M09
@ M09
iv::eGmtArea::M03
@ M03
iv::eGmtArea::M04
@ M04
iv::eGmtArea::P08
@ P08
iv::eGmtArea::M06
@ M06
iv::eGmtArea::P03
@ P03
iv::eGmtArea::P06
@ P06
iv::eGmtArea::P02
@ P02
iv::eGmtArea::M11
@ M11
iv::eGmtArea::M05
@ M05
iv::eGmtArea::M01
@ M01
iv::eGmtArea::M02
@ M02
iv::eGmtArea::P10
@ P10
iv::eGmtArea::M10
@ M10
iv::eGmtArea::P09
@ P09
iv::eGmtArea::P11
@ P11
iv::eGmtArea::M07
@ M07
iv::eGmtArea::P12
@ P12
iv::eGmtArea::M08
@ M08
src
core
enums.hpp
Generated by
1.12.0