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
7namespace iv
8{
9
13enum 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
24enum class eImageFormat
25{
26 SVG,
27 PNG,
28 JPG,
29 BMP,
30 GIF,
31 TIFF
32};
33
34std::string getExtensionForFormat(const iv::eImageFormat &imageFormat);
35
36enum class eLanguage
37{
38 English,
39 French,
40 German,
41 Spanish,
43};
44
45enum class eState
46{
48 Running,
49 Stopped,
51};
52
54{
55 Start,
56 Stop
57};
58
67
72{
73 Centre,
74 Justify,
75 Left,
76 Right
77};
78
79enum class eFontSlant
80{
81 Italic,
82 Normal,
84};
85
86enum class eFontWeight
87{
88 Bold,
89 Normal
90};
91
95enum class eDigitalValue
96{
97 Close,
98 Open,
99 Not
100};
101
103{
104 NoUnit,
105 Ampere,
106 Bar,
107 Celsius,
109 Degree,
111 Gallon,
112 Hertz,
113 Hour,
114 Kelvin,
116 Kilowatt,
118 Knot,
119 Litre,
122 Metre,
125 Minute,
127 MmH2O,
130 Pascal,
132 Ppm,
133 Psi,
135 Rpm,
136 Second,
139 Tonne,
141 Volt,
142 Watt,
143};
144
148enum 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
176enum class eTimeZone
177{
178 Gmt,
180};
181
182enum class eTimeFormat
183{
184 OnlyDate,
185 OnlyTime,
191};
192
193enum class eTimeUnit
194{
195 Second,
196 Minute,
197 Hour,
198 Day,
199 Month,
200 Year
201};
202
206enum class eDataType
207{
208 Bool,
209 Int16,
210 Int32,
211 Int64,
212 Uint16,
213 Uint32,
214 Uint64,
215 Float,
216 Double
217};
218
226
227namespace comms
228{
229
230enum class eLomLine
231{
232 LineA = 0,
233 LineB = 1,
234 LineC = 2,
235 WatchCallA = 3,
236 WatchCallB = 4,
237};
238
240{
241 Ethernet,
242 Http,
245 SocketCan,
247};
248
249enum class eNetworkType
250{
251 Lom,
253 Vdr,
254 WatchCall,
255 External,
256 Api
257};
258
260{
261 Can,
262 J1939,
263 Nmea2k,
264 Modbus,
265 Nmea0183,
266 Vdr,
268 Loggers,
270};
271
277{
281 All
282};
283
284enum class eResponse
285{
286 Ok,
287 Timeout,
289 FullError,
290 NoMessage,
294};
295
297{
298 BootUp = 0,
299 Offline = 255,
300 Operational = 5,
301 PreOperational = 127,
302 Stopped = 4
303};
304
306{
307 Incoming,
309};
310
311namespace modbus
312{
313
315{
320};
321
322}// namespace modbus
323
324namespace nmea0183
325{
326
327enum class eFieldType
328{
329 Boolean,
331 Integer,
332 Decimal,
333 String,
334 NorthPole,
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_
eRegisterType
Definition enums.hpp:315
eFieldType
Definition enums.hpp:328
eNetworkType
Definition enums.hpp:250
eMessageDirection
Definition enums.hpp:306
eCommDebugLevels
Definition enums.hpp:277
eResponse
Definition enums.hpp:285
eProtocolType
Definition enums.hpp:260
eInterfaceType
Definition enums.hpp:240
eHeartbeatState
Definition enums.hpp:297
eLomLine
Definition enums.hpp:231
Definition AlarmsManager.cpp:18
eProcessingState
Definition enums.hpp:54
eTimeUnit
Definition enums.hpp:194
eDigitalValue
Definition enums.hpp:96
eState
Definition enums.hpp:46
std::string getExtensionForFormat(const iv::eImageFormat &imageFormat)
Definition enums.cpp:8
eTimeFormat
Definition enums.hpp:183
eFontWeight
Definition enums.hpp:87
eImageFormat
Definition enums.hpp:25
eLanguage
Definition enums.hpp:37
eEndianType
Definition enums.hpp:220
eDayOfWeek
Definition enums.hpp:14
eProgramCaller
Definition enums.hpp:60
eFontAlignment
Definition enums.hpp:72
eTimeZone
Definition enums.hpp:177
eFontSlant
Definition enums.hpp:80
eMeasurementUnit
Definition enums.hpp:103
eDataType
Definition enums.hpp:207
eGmtArea
Definition enums.hpp:149