PLCnext API Documentation 25.0.2.69
StandardAttribute.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/Base/Core/Enum.hxx"
9
10// DO NOT MODIFY THIS FILE, THIS FILE IS AUTOGENERATED
11
13{
14
18{
20 None = 0,
21
24 Hidden = 1, // (1 << 0)
25
27 Input = 2, // (1 << 1)
28
30 Output = 4, // (1 << 2)
31
33 ReadOnly = 8, // (1 << 3)
34
36 Retain = 16, // (1 << 4)
37
39 Opc = 32, // (1 << 5)
40
42 Ehmi = 64, // (1 << 6)
43
45 ProfiCloud = 128, // (1 << 7)
46
48 Archive = 256, // (1 << 8)
49
51 Invisible = 512, // (1 << 9)
52
54 Assignable = 1024, // (1 << 10)
55
57 Redundant = 2048, // (1 << 11)
58
60 Io = 4096, // (1 << 12)
61};
62
63constexpr StandardAttribute operator|(StandardAttribute lhs, StandardAttribute rhs)
64{
65 return static_cast<StandardAttribute>(static_cast<uint64>(lhs) | static_cast<uint64>(rhs));
66}
67
68constexpr StandardAttribute operator&(StandardAttribute lhs, StandardAttribute rhs)
69{
70 return static_cast<StandardAttribute>(static_cast<uint64>(lhs) & static_cast<uint64>(rhs));
71}
72
73constexpr StandardAttribute& operator|=(StandardAttribute& lhs, StandardAttribute rhs)
74{
75 return (lhs = static_cast<StandardAttribute>(static_cast<uint64>(lhs) | static_cast<uint64>(rhs)));
76}
77
78constexpr StandardAttribute& operator&=(StandardAttribute& lhs, StandardAttribute rhs)
79{
80 return (lhs = static_cast<StandardAttribute>(static_cast<uint64>(lhs) & static_cast<uint64>(rhs)));
81}
82
83constexpr StandardAttribute operator~(StandardAttribute arg)
84{
85 return static_cast<StandardAttribute>(~static_cast<uint64>(arg));
86}
87
89// global stream operators of enum StandardAttribute for logging and parsing
90ARP_EXPORT std::ostream& operator<<(std::ostream& os, StandardAttribute value);
91ARP_EXPORT std::istream& operator>>(std::istream& is, StandardAttribute& value);
92
93} // end of namespace Arp::Plc::Commons::Meta
94
96// template specialization of StandardAttribute formatter
97template<> struct fmt::formatter<Arp::Plc::Commons::Meta::StandardAttribute> : public fmt::ostream_formatter {};
std::uint64_t uint64
The Arp unsigned integer type of 8 byte size.
Definition: PrimitiveTypes.hpp:37
Namespace for the Meta component
StandardAttribute
Standard attributes to types
Definition: StandardAttribute.hpp:18
@ Redundant
The node is visible for Redundancy.
@ ProfiCloud
The node is visible for ProfiCloud.
@ Output
The node is an output port.
@ Input
The node is an input port.
@ Assignable
Applicative attribute for PLCnext, to reinitialize pointer variables.
@ Hidden
The node is hidden, that is, it has just a technical purpose but no logical meaning and does not occu...
@ Invisible
Applicative attribute for PLCnext, to modify variables in the data list or similar.
@ Retain
The node shall be retained.
@ Opc
The node is visible for OPC.
@ Ehmi
The node is visible for eHmi.
@ Archive
The node is set to archive.
@ ReadOnly
The store is read only and may not be modified
Root namespace for the PLCnext API