enums.h
Go to the documentation of this file.
1 // DO NOT EDIT THIS FILE!
2 // It is automatically generated from opcfoundation.org schemas.
3 //
4 
12 
13 #pragma once
14 
15 #include <cstdint>
16 #include <vector>
17 #include <string>
18 
20 
21 namespace OpcUa
22 {
23 struct DiagnosticInfo;
24 
25 
26 
27 enum class OpenFileMode : uint32_t
28 {
29  Read = 1,
30  Write = 2,
31  EraseExisiting = 4,
32  Append = 8,
33 };
34 inline OpenFileMode operator|(OpenFileMode a, OpenFileMode b) { return static_cast<OpenFileMode>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
35 inline OpenFileMode operator&(OpenFileMode a, OpenFileMode b) { return static_cast<OpenFileMode>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
36 
37 
38 // A mask specifying the class of the node.
39 enum class NodeClass : uint32_t
40 {
41  Unspecified = 0,
42  Object = 1,
43  Variable = 2,
44  Method = 4,
45  ObjectType = 8,
46  VariableType = 16,
47  ReferenceType = 32,
48  DataType = 64,
49  View = 128,
50 };
51 inline NodeClass operator|(NodeClass a, NodeClass b) { return static_cast<NodeClass>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
52 inline NodeClass operator&(NodeClass a, NodeClass b) { return static_cast<NodeClass>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
53 
54 
55 // The types of applications.
56 enum class ApplicationType : uint32_t
57 {
58  Server = 0,
59  Client = 1,
60  ClientAndServer = 2,
61  DiscoveryServer = 3,
62 };
63 inline ApplicationType operator|(ApplicationType a, ApplicationType b) { return static_cast<ApplicationType>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
64 inline ApplicationType operator&(ApplicationType a, ApplicationType b) { return static_cast<ApplicationType>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
65 
66 
67 // The type of security to use on a message.
68 enum class MessageSecurityMode : uint32_t
69 {
70  Invalid = 0,
71  None = 1,
72  Sign = 2,
73  SignAndEncrypt = 3,
74 };
75 inline MessageSecurityMode operator|(MessageSecurityMode a, MessageSecurityMode b) { return static_cast<MessageSecurityMode>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
76 inline MessageSecurityMode operator&(MessageSecurityMode a, MessageSecurityMode b) { return static_cast<MessageSecurityMode>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
77 
78 
79 // The possible user token types.
80 enum class UserTokenType : uint32_t
81 {
82  Anonymous = 0,
83  UserName = 1,
84  Certificate = 2,
85  IssuedToken = 3,
86 };
87 inline UserTokenType operator|(UserTokenType a, UserTokenType b) { return static_cast<UserTokenType>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
88 inline UserTokenType operator&(UserTokenType a, UserTokenType b) { return static_cast<UserTokenType>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
89 
90 
91 // Indicates whether a token if being created or renewed.
92 enum class SecurityTokenRequestType : uint32_t
93 {
94  Issue = 0,
95  Renew = 1,
96 };
97 inline SecurityTokenRequestType operator|(SecurityTokenRequestType a, SecurityTokenRequestType b) { return static_cast<SecurityTokenRequestType>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
98 inline SecurityTokenRequestType operator&(SecurityTokenRequestType a, SecurityTokenRequestType b) { return static_cast<SecurityTokenRequestType>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
99 
100 
101 // The bits used to specify default attributes for a new node.
102 enum class NodeAttributesMask : uint32_t
103 {
104  None = 0,
105  AccessLevel = 1,
106  ArrayDimensions = 2,
107  BrowseName = 4,
108  ContainsNoLoops = 8,
109  DataType = 16,
110  Description = 32,
111  DisplayName = 64,
112  EventNotifier = 128,
113  Executable = 256,
114  Historizing = 512,
115  InverseName = 1024,
116  IsAbstract = 2048,
118  NodeClass = 8192,
119  NodeId = 16384,
120  Symmetric = 32768,
121  UserAccessLevel = 65536,
122  UserExecutable = 131072,
123  UserWriteMask = 262144,
124  ValueRank = 524288,
125  WriteMask = 1048576,
126  Value = 2097152,
127  All = 4194303,
128  BaseNode = 1335396,
129  Object = 1335524,
130  ObjectTypeOrDataType = 1337444,
131  Variable = 4026999,
132  VariableType = 3958902,
133  Method = 1466724,
134  ReferenceType = 1371236,
135  View = 1335532,
136 };
137 inline NodeAttributesMask operator|(NodeAttributesMask a, NodeAttributesMask b) { return static_cast<NodeAttributesMask>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
138 inline NodeAttributesMask operator&(NodeAttributesMask a, NodeAttributesMask b) { return static_cast<NodeAttributesMask>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
139 
140 
141 // Define bits used to indicate which attributes are writeable.
142 enum class AttributeWriteMask : uint32_t
143 {
144  None = 0,
145  AccessLevel = 1,
146  ArrayDimensions = 2,
147  BrowseName = 4,
148  ContainsNoLoops = 8,
149  DataType = 16,
150  Description = 32,
151  DisplayName = 64,
152  EventNotifier = 128,
153  Executable = 256,
154  Historizing = 512,
155  InverseName = 1024,
156  IsAbstract = 2048,
158  NodeClass = 8192,
159  NodeId = 16384,
160  Symmetric = 32768,
161  UserAccessLevel = 65536,
162  UserExecutable = 131072,
163  UserWriteMask = 262144,
164  ValueRank = 524288,
165  WriteMask = 1048576,
166  ValueForVariableType = 2097152,
167 };
168 inline AttributeWriteMask operator|(AttributeWriteMask a, AttributeWriteMask b) { return static_cast<AttributeWriteMask>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
169 inline AttributeWriteMask operator&(AttributeWriteMask a, AttributeWriteMask b) { return static_cast<AttributeWriteMask>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
170 
171 
172 // The directions of the references to return.
173 enum class BrowseDirection : uint32_t
174 {
175  Forward = 0,
176  Inverse = 1,
177  Both = 2,
178 };
179 inline BrowseDirection operator|(BrowseDirection a, BrowseDirection b) { return static_cast<BrowseDirection>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
180 inline BrowseDirection operator&(BrowseDirection a, BrowseDirection b) { return static_cast<BrowseDirection>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
181 
182 
183 // A bit mask which specifies what should be returned in a browse response.
184 enum class BrowseResultMask : uint32_t
185 {
186  None = 0,
187  ReferenceTypeId = 1,
188  IsForward = 2,
189  NodeClass = 4,
190  BrowseName = 8,
191  DisplayName = 16,
192  TypeDefinition = 32,
193  All = 63,
194  ReferenceTypeInfo = 3,
195  TargetInfo = 60,
196 };
197 inline BrowseResultMask operator|(BrowseResultMask a, BrowseResultMask b) { return static_cast<BrowseResultMask>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
198 inline BrowseResultMask operator&(BrowseResultMask a, BrowseResultMask b) { return static_cast<BrowseResultMask>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
199 
200 
201 enum class ComplianceLevel : uint32_t
202 {
203  Untested = 0,
204  Partial = 1,
205  SelfTested = 2,
206  Certified = 3,
207 };
208 inline ComplianceLevel operator|(ComplianceLevel a, ComplianceLevel b) { return static_cast<ComplianceLevel>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
209 inline ComplianceLevel operator&(ComplianceLevel a, ComplianceLevel b) { return static_cast<ComplianceLevel>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
210 
211 
212 enum class FilterOperator : uint32_t
213 {
214  Equals = 0,
215  IsNull = 1,
216  GreaterThan = 2,
217  LessThan = 3,
218  GreaterThanOrEqual = 4,
219  LessThanOrEqual = 5,
220  Like = 6,
221  Not = 7,
222  Between = 8,
223  InList = 9,
224  And = 10,
225  Or = 11,
226  Cast = 12,
227  InView = 13,
228  OfType = 14,
229  RelatedTo = 15,
230  BitwiseAnd = 16,
231  BitwiseOr = 17,
232 };
233 inline FilterOperator operator|(FilterOperator a, FilterOperator b) { return static_cast<FilterOperator>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
234 inline FilterOperator operator&(FilterOperator a, FilterOperator b) { return static_cast<FilterOperator>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
235 
236 
237 enum class TimestampsToReturn : uint32_t
238 {
239  Source = 0,
240  Server = 1,
241  Both = 2,
242  Neither = 3,
243 };
244 inline TimestampsToReturn operator|(TimestampsToReturn a, TimestampsToReturn b) { return static_cast<TimestampsToReturn>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
245 inline TimestampsToReturn operator&(TimestampsToReturn a, TimestampsToReturn b) { return static_cast<TimestampsToReturn>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
246 
247 
248 enum class HistoryUpdateType : uint32_t
249 {
250  Insert = 1,
251  Replace = 2,
252  Update = 3,
253  Delete = 4,
254 };
255 inline HistoryUpdateType operator|(HistoryUpdateType a, HistoryUpdateType b) { return static_cast<HistoryUpdateType>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
256 inline HistoryUpdateType operator&(HistoryUpdateType a, HistoryUpdateType b) { return static_cast<HistoryUpdateType>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
257 
258 
259 enum class PerformUpdateType : uint32_t
260 {
261  Insert = 1,
262  Replace = 2,
263  Update = 3,
264  Remove = 4,
265 };
266 inline PerformUpdateType operator|(PerformUpdateType a, PerformUpdateType b) { return static_cast<PerformUpdateType>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
267 inline PerformUpdateType operator&(PerformUpdateType a, PerformUpdateType b) { return static_cast<PerformUpdateType>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
268 
269 
270 enum class MonitoringMode : uint32_t
271 {
272  Disabled = 0,
273  Sampling = 1,
274  Reporting = 2,
275 };
276 inline MonitoringMode operator|(MonitoringMode a, MonitoringMode b) { return static_cast<MonitoringMode>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
277 inline MonitoringMode operator&(MonitoringMode a, MonitoringMode b) { return static_cast<MonitoringMode>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
278 
279 
280 enum class DataChangeTrigger : uint32_t
281 {
282  Status = 0,
283  StatusValue = 1,
285 };
286 inline DataChangeTrigger operator|(DataChangeTrigger a, DataChangeTrigger b) { return static_cast<DataChangeTrigger>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
287 inline DataChangeTrigger operator&(DataChangeTrigger a, DataChangeTrigger b) { return static_cast<DataChangeTrigger>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
288 
289 
290 enum class DeadbandType : uint32_t
291 {
292  None = 0,
293  Absolute = 1,
294  Percent = 2,
295 };
296 inline DeadbandType operator|(DeadbandType a, DeadbandType b) { return static_cast<DeadbandType>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
297 inline DeadbandType operator&(DeadbandType a, DeadbandType b) { return static_cast<DeadbandType>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
298 
299 
300 // A simple enumerated type used for testing.
301 enum class EnumeratedTestType : uint32_t
302 {
303  Red = 1,
304  Yellow = 4,
305  Green = 5,
306 };
307 inline EnumeratedTestType operator|(EnumeratedTestType a, EnumeratedTestType b) { return static_cast<EnumeratedTestType>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
308 inline EnumeratedTestType operator&(EnumeratedTestType a, EnumeratedTestType b) { return static_cast<EnumeratedTestType>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
309 
310 
311 enum class RedundancySupport : uint32_t
312 {
313  None = 0,
314  Cold = 1,
315  Warm = 2,
316  Hot = 3,
317  Transparent = 4,
318  HotAndMirrored = 5,
319 };
320 inline RedundancySupport operator|(RedundancySupport a, RedundancySupport b) { return static_cast<RedundancySupport>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
321 inline RedundancySupport operator&(RedundancySupport a, RedundancySupport b) { return static_cast<RedundancySupport>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
322 
323 
324 enum class ServerState : uint32_t
325 {
326  Running = 0,
327  Failed = 1,
328  NoConfiguration = 2,
329  Suspended = 3,
330  Shutdown = 4,
331  Test = 5,
332  CommunicationFault = 6,
333  Unknown = 7,
334 };
335 inline ServerState operator|(ServerState a, ServerState b) { return static_cast<ServerState>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
336 inline ServerState operator&(ServerState a, ServerState b) { return static_cast<ServerState>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
337 
338 
339 enum class ModelChangeStructureVerbMask : uint32_t
340 {
341  NodeAdded = 1,
342  NodeDeleted = 2,
343  ReferenceAdded = 4,
344  ReferenceDeleted = 8,
345  DataTypeChanged = 16,
346 };
347 inline ModelChangeStructureVerbMask operator|(ModelChangeStructureVerbMask a, ModelChangeStructureVerbMask b) { return static_cast<ModelChangeStructureVerbMask>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
348 inline ModelChangeStructureVerbMask operator&(ModelChangeStructureVerbMask a, ModelChangeStructureVerbMask b) { return static_cast<ModelChangeStructureVerbMask>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
349 
350 
351 enum class AxisScaleEnumeration : uint32_t
352 {
353  Linear = 0,
354  Log = 1,
355  Ln = 2,
356 };
357 inline AxisScaleEnumeration operator|(AxisScaleEnumeration a, AxisScaleEnumeration b) { return static_cast<AxisScaleEnumeration>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
358 inline AxisScaleEnumeration operator&(AxisScaleEnumeration a, AxisScaleEnumeration b) { return static_cast<AxisScaleEnumeration>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
359 
360 
361 enum class ExceptionDeviationFormat : uint32_t
362 {
363  AbsoluteValue = 0,
364  PercentOfRange = 1,
365  PercentOfValue = 2,
366  PercentOfEURange = 3,
367  Unknown = 4,
368 };
369 inline ExceptionDeviationFormat operator|(ExceptionDeviationFormat a, ExceptionDeviationFormat b) { return static_cast<ExceptionDeviationFormat>(static_cast<uint32_t>(a) | static_cast<uint32_t>(b)); }
370 inline ExceptionDeviationFormat operator&(ExceptionDeviationFormat a, ExceptionDeviationFormat b) { return static_cast<ExceptionDeviationFormat>(static_cast<uint32_t>(a) & static_cast<uint32_t>(b)); }
371 
372 } // namespace
373 
ModelChangeStructureVerbMask
Definition: enums.h:339
AttributeWriteMask
Definition: enums.h:142
PerformUpdateType
Definition: enums.h:259
OpenFileMode operator&(OpenFileMode a, OpenFileMode b)
Definition: enums.h:35
DeadbandType
Definition: enums.h:290
ServerState
Definition: enums.h:324
OpenFileMode
Definition: enums.h:27
SecurityTokenRequestType
Definition: enums.h:92
OpenFileMode operator|(OpenFileMode a, OpenFileMode b)
Definition: enums.h:34
ExceptionDeviationFormat
Definition: enums.h:361
TimestampsToReturn
Definition: enums.h:237
EnumeratedTestType
Definition: enums.h:301
BrowseDirection
Definition: enums.h:173
HistoryUpdateType
Definition: enums.h:248
MessageSecurityMode
Definition: enums.h:68
OPC UA Address space part. GNU LGPL.
RedundancySupport
Definition: enums.h:311
MonitoringMode
Definition: enums.h:270
UserTokenType
Definition: enums.h:80
NodeAttributesMask
Definition: enums.h:102
BrowseResultMask
Definition: enums.h:184
NodeClass
Definition: enums.h:39
FilterOperator
Definition: enums.h:212
DataChangeTrigger
Definition: enums.h:280
ComplianceLevel
Definition: enums.h:201
AxisScaleEnumeration
Definition: enums.h:351
ApplicationType
Definition: enums.h:56
const char DiagnosticInfo[]
Definition: strings.h:50


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:06:04