Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
structs.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_IOFILE_STRUCTS_HPP
2#define IV_SRC_IOFILE_STRUCTS_HPP
3
4#include "channels/enums.hpp"
5#include "core/types.hpp"
6
7#include <optional>
8#include <string>
9
10namespace iv::iofile
11{
12
14{
15 static constexpr std::string channelTag {"ChannelTag"};
16 static constexpr std::string shipyardTag {"ShipyardTag"};
17 static constexpr std::string channelDescription {"Description"};
18 static constexpr std::string readOrWrite {"Read/Write"};
19 static constexpr std::string function {"Function"};
20 static constexpr std::string isExtended {"IsExtended"};
21 static constexpr std::string address {"Address"};
22 static constexpr std::string valueType {"ValueType"};
23 static constexpr std::string endianness {"Endianness"};
24 static constexpr std::string bitsLength {"BitsLength"};
25 static constexpr std::string startBit {"StartBit"};
26};
27
29{
30 static constexpr std::string channelTag {"ChannelTag"};
31 static constexpr std::string shipyardTag {"ShipyardTag"};
32 static constexpr std::string channelDescription {"Description"};
33 static constexpr std::string header {"Header"};
34 static constexpr std::string fieldPosition {"FieldPosition"};
35 static constexpr std::string fieldType {"FieldType"};
36};
37
39{
40 static constexpr std::string channelTag {"ChannelTag"};
41 static constexpr std::string shipyardTag {"ShipyardTag"};
42 static constexpr std::string channelDescription {"Description"};
43 static constexpr std::string vdrId {"VdrId"};
44};
45
47{
48 static constexpr std::string channelTag {"ChannelTag"};
49 static constexpr std::string type {"Type"};
50 static constexpr std::string pgn {"PGN"};
51 static constexpr std::string sourceAddress {"SourceAddress"};
52 static constexpr std::string spn {"SPN"};
53 static constexpr std::string dataType {"DataType"};
54 static constexpr std::string extraIdentifier {"ExtraIdentifier"};
55};
56
58{
59 static constexpr std::string channelTag {"ChannelTag"};
60 static constexpr std::string pgn {"PGN"};
61 static constexpr std::string sourceAddress {"SourceAddress"};
62 static constexpr std::string spn {"SPN"};
63 static constexpr std::string dataType {"DataType"};
64 static constexpr std::string extraIdentifier {"ExtraIdentifier"};
65};
66
68{
69 static constexpr std::string_view trim {"Trim"};
70 static constexpr std::string_view soundingHeight {"SoundingHeight"};
71 static constexpr std::string_view volume {"Volume"};
72 static constexpr std::string_view xgc {"XGC"};
73 static constexpr std::string_view ygc {"YGC"};
74 static constexpr std::string_view zgc {"ZGC"};
75 static constexpr std::string_view transversalInertia {"TransversalInertia"};
76};
77
79{
80 double trim {0};
81 double soundingHeight {0};
82 double volume {0};
83 double xgc {0};
84 double ygc {0};
85 double zgc {0};
87};
88
90{
91 static constexpr std::string_view channelEnabled {"Enabled"};
92 static constexpr std::string_view channelUnit {"Unit"};
93 static constexpr std::string_view channelOrder {"Order"};
94 static constexpr std::string_view channelTag {"Tag"};
95 static constexpr std::string_view channelShipyardTag {"Shipyard Tag (*)"};
96 static constexpr std::string_view channelBaseType {"Base Type"};
97 static constexpr std::string_view channelSpecificType {"Specific Type"};
98 static constexpr std::string_view channelDescriptionEn {"English Description (*)"};
99 static constexpr std::string_view channelDescriptionEs {"Spanish Description (*)"};
100 static constexpr std::string_view channelDescriptionFr {"French Description (*)"};
101 static constexpr std::string_view channelDescriptionDe {"German Description (*)"};
102 static constexpr std::string_view channelDescriptionPt {"Portuguese Description (*)"};
103 static constexpr std::string_view channelArea {"Area"};
104 static constexpr std::string_view channelTimeout {"Timeout (*)"};
105
106 // ALARM PARAMETERS
107 static constexpr std::string_view channelAlarmGroup {"Group"};
108 static constexpr std::string_view channelAlarmEnabled {"Alarm Enabled (*)"};
109 static constexpr std::string_view channelAlarmOffScan {"Off Scan (*)"};
110 static constexpr std::string_view channelAlarmPriority {"Priority"};
111 static constexpr std::string_view channelAlarmActivationDelay {"Activation Delay (*)"};
112 static constexpr std::string_view channelAlarmDeactivationDelay {"Deactivation Delay (*)"};
113 static constexpr std::string_view channelAlarmInhibitionTag {"Inhibition Tag"};
114 static constexpr std::string_view channelAlarmInhibitionCondition {"Inhibition Condition"};
115
116 // DIGITAL
117 static constexpr std::string_view channelDigitalInverted {"Inverted (*)"};
118 static constexpr std::string_view channelDigitalAlarmLimit {"Alarm Limit (*)"};
119 static constexpr std::string_view channelDigitalDelayOn {"On Delay (*)"};
120 static constexpr std::string_view channelDigitalDelayOff {"Off Delay (*)"};
121
122 // ANALOG
123 static constexpr std::string_view channelAnalogDeadBand {"Dead Band (*)"};
124 static constexpr std::string_view channelAnalogOffset {"Offset (*)"};
125 static constexpr std::string_view channelAnalogFactor {"Factor (*)"};
126 static constexpr std::string_view channelAnalogNumDecimals {"Num Decimals (*)"};
127 static constexpr std::string_view channelAnalogMeasurementUnit {"Measurement Unit"};
128 static constexpr std::string_view channelAnalogSensorType {"Sensor Type"};
129 static constexpr std::string_view channelAnalogSensorLow {"Sensor Low (*)"};
130 static constexpr std::string_view channelAnalogSensorHigh {"Sensor High (*)"};
131
132 // ANALOG (ALARM - AnalogAlarmLimits)
133 static constexpr std::string_view channelAnalogAlarmIfl {"Instrument Failure Low (*)"};
134 static constexpr std::string_view channelAnalogAlarmIfh {"Instrument Failure High (*)"};
135 static constexpr std::string_view channelAnalogAlarmLEL {"Low Engineering Limit (*)"};
136 static constexpr std::string_view channelAnalogAlarmHEL {"High Engineering Limit (*)"};
137 static constexpr std::string_view channelAnalogAlarmLLALEnable {"Low Low Alarm Limit Enable (*)"};
138 static constexpr std::string_view channelAnalogAlarmLLAL {"Low Low Alarm Limit (*)"};
139 static constexpr std::string_view channelAnalogAlarmLALEnable {"Low Alarm Limit Enable (*)"};
140 static constexpr std::string_view channelAnalogAlarmLAL {"Low Alarm Limit (*)"};
141 static constexpr std::string_view channelAnalogAlarmHALEnable {"High Alarm Limit Enable (*)"};
142 static constexpr std::string_view channelAnalogAlarmHAL {"High Alarm Limit (*)"};
143 static constexpr std::string_view channelAnalogAlarmHHALEnable {"High High Alarm Limit Enable (*)"};
144 static constexpr std::string_view channelAnalogAlarmHHAL {"High High Alarm Limit (*)"};
145
146 // MISC (ChannelInfo)
147 static constexpr std::string_view channelFunctionCode {"Function Code (*)"};
148 static constexpr std::string_view channelEquipment {"Equipment (*)"};
149 static constexpr std::string_view channelSystem {"System (*)"};
150};
151
153{
155 std::string shipyardTag;
158 std::string descriptionGerman;
159 std::string descriptionFrench;
161 std::string function;
162 std::string system;
163 std::string equipment;
164 std::optional<iv::types::milliseconds> timeout;
165
167 {
170 std::optional<iv::types::delay> alarmOnDelay;
171 std::optional<iv::types::delay> alarmOffDelay;
172 // iv::types::groupId group;
173 };
174
176 {
179 std::optional<iv::types::delay> onDelay;
180 std::optional<iv::types::delay> offDelay;
181 };
182
184 {
185 std::optional<double> deadBand;
186 std::optional<double> offset;
187 std::optional<double> factor;
188 std::optional<uint16_t> numberOfDecimals;
189 std::optional<double> sensorLow;
190 std::optional<double> sensorHigh;
191 };
192
211
213 std::optional<DigitalParameters> digitalParameters;
214 std::optional<AnalogParameters> analogParameters;
215 std::optional<AnalogAlarmParameters> analogAlarmParameters;
216};
217
219{
220 static constexpr std::string_view timestamp {"Timestamp"};
221};
222
223}// namespace iv::iofile
224
225#endif//IV_SRC_IOFILE_STRUCTS_HPP
eDigitalValue
Definition enums.hpp:103
Definition ChannelsImporterExporter.cpp:15
std::string channelId
Definition types.hpp:66
bool alarmEnabled
Definition structs.hpp:168
bool alarmOffscan
Definition structs.hpp:169
std::optional< iv::types::delay > alarmOffDelay
Definition structs.hpp:171
std::optional< iv::types::delay > alarmOnDelay
Definition structs.hpp:170
std::optional< double > limitValue
Definition structs.hpp:203
std::optional< double > lowEngineeringLimit
Definition structs.hpp:197
bool hasInstrumentFailureHigh
Definition structs.hpp:196
AlarmLimit highHighAlarmLimit
Definition structs.hpp:209
AlarmLimit lowLowAlarmLimit
Definition structs.hpp:206
AlarmLimit highAlarmLimit
Definition structs.hpp:208
bool hasInstrumentFailureLow
Definition structs.hpp:195
std::optional< double > highEngineeringLimit
Definition structs.hpp:198
AlarmLimit lowAlarmLimit
Definition structs.hpp:207
std::optional< double > offset
Definition structs.hpp:186
std::optional< double > deadBand
Definition structs.hpp:185
std::optional< uint16_t > numberOfDecimals
Definition structs.hpp:188
std::optional< double > sensorLow
Definition structs.hpp:189
std::optional< double > factor
Definition structs.hpp:187
std::optional< double > sensorHigh
Definition structs.hpp:190
std::optional< iv::types::delay > offDelay
Definition structs.hpp:180
std::optional< iv::types::delay > onDelay
Definition structs.hpp:179
iv::channels::eDigitalValue alarmLimit
Definition structs.hpp:178
Definition structs.hpp:153
std::string equipment
Definition structs.hpp:163
std::string shipyardTag
Definition structs.hpp:155
iv::types::channelId channelId
Definition structs.hpp:154
std::optional< DigitalParameters > digitalParameters
Definition structs.hpp:213
std::string descriptionEnglish
Definition structs.hpp:156
std::string descriptionSpanish
Definition structs.hpp:157
std::string function
Definition structs.hpp:161
std::optional< iv::types::milliseconds > timeout
Definition structs.hpp:164
std::string descriptionGerman
Definition structs.hpp:158
std::optional< AnalogAlarmParameters > analogAlarmParameters
Definition structs.hpp:215
std::string descriptionFrench
Definition structs.hpp:159
std::string system
Definition structs.hpp:162
std::string descriptionPortuguese
Definition structs.hpp:160
std::optional< AnalogParameters > analogParameters
Definition structs.hpp:214
AlarmParameters alarmParameters
Definition structs.hpp:212
Definition structs.hpp:90
static constexpr std::string_view channelAnalogSensorHigh
Definition structs.hpp:130
static constexpr std::string_view channelDescriptionPt
Definition structs.hpp:102
static constexpr std::string_view channelAnalogSensorType
Definition structs.hpp:128
static constexpr std::string_view channelTag
Definition structs.hpp:94
static constexpr std::string_view channelAlarmDeactivationDelay
Definition structs.hpp:112
static constexpr std::string_view channelAnalogAlarmHAL
Definition structs.hpp:142
static constexpr std::string_view channelBaseType
Definition structs.hpp:96
static constexpr std::string_view channelAnalogAlarmIfl
Definition structs.hpp:133
static constexpr std::string_view channelDigitalInverted
Definition structs.hpp:117
static constexpr std::string_view channelUnit
Definition structs.hpp:92
static constexpr std::string_view channelFunctionCode
Definition structs.hpp:147
static constexpr std::string_view channelDescriptionDe
Definition structs.hpp:101
static constexpr std::string_view channelEnabled
Definition structs.hpp:91
static constexpr std::string_view channelShipyardTag
Definition structs.hpp:95
static constexpr std::string_view channelAnalogAlarmIfh
Definition structs.hpp:134
static constexpr std::string_view channelDigitalDelayOff
Definition structs.hpp:120
static constexpr std::string_view channelAlarmInhibitionTag
Definition structs.hpp:113
static constexpr std::string_view channelAlarmInhibitionCondition
Definition structs.hpp:114
static constexpr std::string_view channelAnalogAlarmLALEnable
Definition structs.hpp:139
static constexpr std::string_view channelAnalogNumDecimals
Definition structs.hpp:126
static constexpr std::string_view channelAlarmActivationDelay
Definition structs.hpp:111
static constexpr std::string_view channelDescriptionFr
Definition structs.hpp:100
static constexpr std::string_view channelSystem
Definition structs.hpp:149
static constexpr std::string_view channelAnalogAlarmLLALEnable
Definition structs.hpp:137
static constexpr std::string_view channelOrder
Definition structs.hpp:93
static constexpr std::string_view channelAlarmEnabled
Definition structs.hpp:108
static constexpr std::string_view channelAnalogAlarmHHALEnable
Definition structs.hpp:143
static constexpr std::string_view channelAlarmPriority
Definition structs.hpp:110
static constexpr std::string_view channelAnalogAlarmLAL
Definition structs.hpp:140
static constexpr std::string_view channelArea
Definition structs.hpp:103
static constexpr std::string_view channelAnalogAlarmHEL
Definition structs.hpp:136
static constexpr std::string_view channelAnalogDeadBand
Definition structs.hpp:123
static constexpr std::string_view channelTimeout
Definition structs.hpp:104
static constexpr std::string_view channelAnalogAlarmLEL
Definition structs.hpp:135
static constexpr std::string_view channelAnalogFactor
Definition structs.hpp:125
static constexpr std::string_view channelSpecificType
Definition structs.hpp:97
static constexpr std::string_view channelAnalogAlarmLLAL
Definition structs.hpp:138
static constexpr std::string_view channelDescriptionEn
Definition structs.hpp:98
static constexpr std::string_view channelAnalogMeasurementUnit
Definition structs.hpp:127
static constexpr std::string_view channelAnalogAlarmHHAL
Definition structs.hpp:144
static constexpr std::string_view channelDescriptionEs
Definition structs.hpp:99
static constexpr std::string_view channelDigitalAlarmLimit
Definition structs.hpp:118
static constexpr std::string_view channelEquipment
Definition structs.hpp:148
static constexpr std::string_view channelAnalogAlarmHALEnable
Definition structs.hpp:141
static constexpr std::string_view channelDigitalDelayOn
Definition structs.hpp:119
static constexpr std::string_view channelAlarmGroup
Definition structs.hpp:107
static constexpr std::string_view channelAlarmOffScan
Definition structs.hpp:109
static constexpr std::string_view channelAnalogSensorLow
Definition structs.hpp:129
static constexpr std::string_view channelAnalogOffset
Definition structs.hpp:124
Definition structs.hpp:219
static constexpr std::string_view timestamp
Definition structs.hpp:220
Definition structs.hpp:47
static constexpr std::string extraIdentifier
Definition structs.hpp:54
static constexpr std::string pgn
Definition structs.hpp:50
static constexpr std::string spn
Definition structs.hpp:52
static constexpr std::string sourceAddress
Definition structs.hpp:51
static constexpr std::string type
Definition structs.hpp:49
static constexpr std::string dataType
Definition structs.hpp:53
static constexpr std::string channelTag
Definition structs.hpp:48
Definition structs.hpp:14
static constexpr std::string isExtended
Definition structs.hpp:20
static constexpr std::string readOrWrite
Definition structs.hpp:18
static constexpr std::string endianness
Definition structs.hpp:23
static constexpr std::string address
Definition structs.hpp:21
static constexpr std::string channelDescription
Definition structs.hpp:17
static constexpr std::string shipyardTag
Definition structs.hpp:16
static constexpr std::string startBit
Definition structs.hpp:25
static constexpr std::string function
Definition structs.hpp:19
static constexpr std::string valueType
Definition structs.hpp:22
static constexpr std::string channelTag
Definition structs.hpp:15
static constexpr std::string bitsLength
Definition structs.hpp:24
Definition structs.hpp:29
static constexpr std::string shipyardTag
Definition structs.hpp:31
static constexpr std::string fieldType
Definition structs.hpp:35
static constexpr std::string channelTag
Definition structs.hpp:30
static constexpr std::string fieldPosition
Definition structs.hpp:34
static constexpr std::string header
Definition structs.hpp:33
static constexpr std::string channelDescription
Definition structs.hpp:32
Definition structs.hpp:58
static constexpr std::string pgn
Definition structs.hpp:60
static constexpr std::string extraIdentifier
Definition structs.hpp:64
static constexpr std::string spn
Definition structs.hpp:62
static constexpr std::string dataType
Definition structs.hpp:63
static constexpr std::string sourceAddress
Definition structs.hpp:61
static constexpr std::string channelTag
Definition structs.hpp:59
static constexpr std::string_view xgc
Definition structs.hpp:72
static constexpr std::string_view transversalInertia
Definition structs.hpp:75
static constexpr std::string_view trim
Definition structs.hpp:69
static constexpr std::string_view soundingHeight
Definition structs.hpp:70
static constexpr std::string_view zgc
Definition structs.hpp:74
static constexpr std::string_view ygc
Definition structs.hpp:73
static constexpr std::string_view volume
Definition structs.hpp:71
Definition structs.hpp:79
double zgc
Definition structs.hpp:85
double volume
Definition structs.hpp:82
double ygc
Definition structs.hpp:84
double soundingHeight
Definition structs.hpp:81
double trim
Definition structs.hpp:80
double transversalInertia
Definition structs.hpp:86
double xgc
Definition structs.hpp:83
Definition structs.hpp:39
static constexpr std::string shipyardTag
Definition structs.hpp:41
static constexpr std::string channelDescription
Definition structs.hpp:42
static constexpr std::string channelTag
Definition structs.hpp:40
static constexpr std::string vdrId
Definition structs.hpp:43