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
64{
65 return static_cast<StandardAttribute>(static_cast<uint64>(lhs) | static_cast<uint64>(rhs));
66}
67
69{
70 return static_cast<StandardAttribute>(static_cast<uint64>(lhs) & static_cast<uint64>(rhs));
71}
72
74{
75 return (lhs = static_cast<StandardAttribute>(static_cast<uint64>(lhs) | static_cast<uint64>(rhs)));
76}
77
79{
80 return (lhs = static_cast<StandardAttribute>(static_cast<uint64>(lhs) & static_cast<uint64>(rhs)));
81}
82
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::Meta::Commons
94
96// template specialization of StandardAttribute formatter
97template<> struct fmt::formatter<Arp::Plc::Meta::Commons::StandardAttribute> : public fmt::ostream_formatter {};
std::uint64_t uint64
The Arp unsigned integer type of 8 byte size.
Definition: PrimitiveTypes.hpp:37
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.
Namespace for interface types of the Meta component
constexpr DataType & operator&=(DataType &lhs, DataType rhs)
Bitwise AND-assign operation
Definition: DataType.hpp:172
constexpr DataType & operator|=(DataType &lhs, DataType rhs)
Bitwise OR-assign operation
Definition: DataType.hpp:182
constexpr DataType operator&(DataType lhs, DataType rhs)
Bitwise AND operation
Definition: DataType.hpp:153
std::istream & operator>>(std::istream &is, BitSize &value)
Reads the bit size in format XXXX.Y from an input stream with X as byte size and y as bit size.
Definition: BitSize.cpp:153
constexpr DataType operator~(DataType arg)
Bitwise negate operation
Definition: DataType.hpp:162
std::ostream & operator<<(std::ostream &os, const BitSize &value)
Format to ostream
Definition: BitSize.cpp:141
StandardAttribute
Standard attributes to types
Definition: StandardAttribute.hpp:18
constexpr DataType operator|(DataType lhs, DataType rhs)
Bitwise OR operation
Definition: DataType.hpp:143
@ ReadOnly
The store is read only and may not be modified
Root namespace for the PLCnext API