open62541pp 0.18.0
C++ wrapper of open62541
|
All wrapper classes inherit from Wrapper.
Native open62541 objects can be accessed using the Wrapper::handle() member function.
Wrapper types are pointer-interconvertible to the wrapped native type and vice versa:
According to the standard:
Two objects
a
andb
are pointer-interconvertible if: One is a standard-layout class object [wrapper] and the other is the first non-static data member of that object [wrapped native type].
Derived classes must fulfill the requirements of standard-layout types to be convertible.
Macros | |
#define | UAPP_NODEATTR(Type, suffix, member, flag) |
#define | UAPP_NODEATTR_BITMASK(Type, suffix, member, flag) |
#define | UAPP_NODEATTR_CAST(Type, suffix, member, flag) |
#define | UAPP_NODEATTR_WRAPPER(Type, suffix, member, flag) |
#define | UAPP_NODEATTR_ARRAY(Type, suffix, member, memberSize, flag) |
#define | UAPP_NODEATTR_COMMON |
Typedefs | |
using | opcua::ua::FilterOperand = std::variant< ElementOperand, LiteralOperand, AttributeOperand, SimpleAttributeOperand, ExtensionObject > |
using | opcua::ua::AggregateConfiguration = UA_AggregateConfiguration |
Enumerations | |
enum class | opcua::ua::ApplicationType : int32_t |
enum class | opcua::ua::MessageSecurityMode : int32_t |
enum class | opcua::ua::UserTokenType : int32_t |
enum class | opcua::ua::NodeAttributesMask : uint32_t |
enum class | opcua::ua::BrowseDirection : int32_t |
enum class | opcua::ua::BrowseResultMask : uint32_t |
enum class | opcua::ua::TimestampsToReturn : int32_t |
enum class | opcua::ua::MonitoringMode : int32_t |
enum class | opcua::ua::FilterOperator : int32_t |
enum class | opcua::ua::DataChangeTrigger : int32_t |
enum class | opcua::ua::DeadbandType : int32_t |
enum class | opcua::ua::PerformUpdateType : int32_t |
enum class | opcua::ua::AxisScaleEnumeration : int32_t |
enum class | opcua::ua::StructureType : int32_t |
Functions | |
constexpr std::true_type | opcua::ua::isBitmaskEnum (NodeAttributesMask) |
constexpr std::true_type | opcua::ua::isBitmaskEnum (BrowseResultMask) |
ContentFilter | opcua::ua::operator&& (const ContentFilterElement &lhs, const ContentFilter &rhs) |
ContentFilter | opcua::ua::operator&& (const ContentFilter &lhs, const ContentFilterElement &rhs) |
ContentFilter | opcua::ua::operator|| (const ContentFilterElement &lhs, const ContentFilter &rhs) |
ContentFilter | opcua::ua::operator|| (const ContentFilter &lhs, const ContentFilterElement &rhs) |
template<typename T > | |
String | toString (const T &object, const UA_DataType &type) |
template<typename T , typename = std::enable_if_t<detail::IsRegistered<T>::value>> | |
String | toString (const T &object) |
ContentFilter | operator! (const ContentFilterElement &filterElement) |
ContentFilter | operator! (const ContentFilter &filter) |
ContentFilter | operator&& (const ContentFilterElement &lhs, const ContentFilterElement &rhs) |
ContentFilter | operator&& (const ContentFilterElement &lhs, const ContentFilter &rhs) |
ContentFilter | operator&& (const ContentFilter &lhs, const ContentFilterElement &rhs) |
ContentFilter | operator&& (const ContentFilter &lhs, const ContentFilter &rhs) |
ContentFilter | operator|| (const ContentFilterElement &lhs, const ContentFilterElement &rhs) |
ContentFilter | operator|| (const ContentFilterElement &lhs, const ContentFilter &rhs) |
ContentFilter | operator|| (const ContentFilter &lhs, const ContentFilterElement &rhs) |
ContentFilter | operator|| (const ContentFilter &lhs, const ContentFilter &rhs) |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr WrapperType * | asWrapper (NativeType *native) noexcept |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr const WrapperType * | asWrapper (const NativeType *native) noexcept |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr WrapperType & | asWrapper (NativeType &native) noexcept |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr const WrapperType & | asWrapper (const NativeType &native) noexcept |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr NativeType * | asNative (WrapperType *wrapper) noexcept |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr const NativeType * | asNative (const WrapperType *wrapper) noexcept |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr NativeType & | asNative (WrapperType &wrapper) noexcept |
template<typename WrapperType , typename NativeType = typename WrapperType::NativeType> | |
constexpr const NativeType & | asNative (const WrapperType &wrapper) noexcept |
#define UAPP_NODEATTR | ( | Type, | |
suffix, | |||
member, | |||
flag | |||
) |
#define UAPP_NODEATTR_BITMASK | ( | Type, | |
suffix, | |||
member, | |||
flag | |||
) |
#define UAPP_NODEATTR_CAST | ( | Type, | |
suffix, | |||
member, | |||
flag | |||
) |
#define UAPP_NODEATTR_WRAPPER | ( | Type, | |
suffix, | |||
member, | |||
flag | |||
) |
#define UAPP_NODEATTR_ARRAY | ( | Type, | |
suffix, | |||
member, | |||
memberSize, | |||
flag | |||
) |
#define UAPP_NODEATTR_COMMON |
using opcua::ua::FilterOperand = typedef std::variant< ElementOperand, LiteralOperand, AttributeOperand, SimpleAttributeOperand, ExtensionObject> |
Filter operand.
The FilterOperand is an extensible parameter and can be of type:
using opcua::ua::AggregateConfiguration = typedef UA_AggregateConfiguration |
|
strong |
|
strong |
|
strong |
|
strong |
Node attributes mask.
Bitmask used in the node attributes parameters to specify which attributes are set.
|
strong |
|
strong |
Browse result mask.
The enum can be used as a bitmask and allows bitwise operations, e.g.:
Enumerator | |
---|---|
None | |
ReferenceTypeId | |
IsForward | |
NodeClass | |
BrowseName | |
DisplayName | |
TypeDefinition | |
All | |
ReferenceTypeInfo | |
TargetInfo |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Perform update type for structured data history updates.
Enumerator | |
---|---|
Insert | |
Replace | |
Update | |
Remove |
|
strong |
|
strong |
|
constexpr |
|
constexpr |
ContentFilter operator&& | ( | const ContentFilterElement & | lhs, |
const ContentFilter & | rhs | ||
) |
ContentFilter operator&& | ( | const ContentFilter & | lhs, |
const ContentFilterElement & | rhs | ||
) |
ContentFilter operator|| | ( | const ContentFilterElement & | lhs, |
const ContentFilter & | rhs | ||
) |
ContentFilter operator|| | ( | const ContentFilter & | lhs, |
const ContentFilterElement & | rhs | ||
) |
|
related |
Converts an object to its string representation.
This function wraps UA_print to generate a string representation of the given object, based on its data type description.
UA_ENABLE_TYPEDESCRIPTION
option. If these conditions are not met, the function returns an empty String.object | Native or wrapper object. |
type | Data type of object . |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
|
related |
Cast native object pointers to Wrapper object pointers.
This is especially helpful to avoid copies in getter methods of composed types.
Definition at line 190 of file wrapper.hpp.
|
related |
Cast native object pointers to Wrapper object pointers.
This is especially helpful to avoid copies in getter methods of composed types.
Definition at line 197 of file wrapper.hpp.
|
related |
Cast native object references to Wrapper object references.
This is especially helpful to avoid copies in getter methods of composed types.
Definition at line 205 of file wrapper.hpp.
|
related |
Cast native object references to Wrapper object references.
This is especially helpful to avoid copies in getter methods of composed types.
Definition at line 212 of file wrapper.hpp.
|
related |
Cast Wrapper object pointers to native object pointers.
Definition at line 220 of file wrapper.hpp.
|
related |
Cast Wrapper object pointers to native object pointers.
Definition at line 227 of file wrapper.hpp.
|
related |
Cast Wrapper object references to native object references.
Definition at line 235 of file wrapper.hpp.
|
related |
Cast Wrapper object references to native object references.
Definition at line 242 of file wrapper.hpp.