open62541pp 0.16.0
C++ wrapper of open62541
|
Namespaces | |
namespace | crypto |
namespace | detail |
namespace | services |
Typedefs | |
using | DefaultCompletionToken = UseFutureToken |
using | StateCallback = std::function<void()> |
using | InactivityCallback = std::function<void()> |
using | NamespaceIndex = uint16_t |
using | TypeIndex = uint16_t |
using | DataTypeMember = UA_DataTypeMember |
using | MonitoringParametersEx = services::MonitoringParametersEx |
using | LogFunction = std::function<void(LogLevel, LogCategory, std::string_view msg)> |
using | SubscriptionParameters = services::SubscriptionParameters |
using | DataChangeNotificationCallback = services::DataChangeNotificationCallback |
using | EventNotificationCallback = services::EventNotificationCallback |
using | NumericRangeDimension = UA_NumericRangeDimension |
using | FilterOperand |
using | AggregateConfiguration = UA_AggregateConfiguration |
Enumerations | |
enum class | AttributeId : int32_t |
enum class | NodeClass : int32_t |
enum class | AccessLevel : uint8_t |
enum class | WriteMask : uint32_t |
enum class | ValueRank : int32_t |
enum class | EventNotifier : uint8_t |
enum class | ModellingRule : uint16_t |
enum class | BrowseDirection : int32_t |
enum class | TimestampsToReturn : int32_t |
enum class | MonitoringMode : int32_t |
enum class | MessageSecurityMode : int32_t |
enum class | DataTypeId : int32_t |
enum class | ReferenceTypeId : int32_t |
enum class | ObjectTypeId : int32_t |
enum class | VariableTypeId : int32_t |
enum class | ObjectId : int32_t |
enum class | VariableId : int32_t |
enum class | MethodId : int32_t |
enum class | LogLevel |
enum class | LogCategory |
enum class | NodeIdType : uint8_t |
enum class | VariantPolicy |
enum class | ExtensionObjectEncoding |
enum class | UserTokenType : int32_t |
enum class | NodeAttributesMask : uint32_t |
enum class | BrowseResultMask : uint32_t |
enum class | FilterOperator : int32_t |
enum class | DataChangeTrigger : int32_t |
enum class | DeadbandType : int32_t |
enum class | PerformUpdateType : int32_t |
enum class | StructureType : int32_t |
Functions | |
template<typename T , typename Initiation , typename CompletionToken , typename... Args> | |
auto | asyncInitiate (Initiation &&initiation, CompletionToken &&token, Args &&... args) |
template<typename T > | |
constexpr std::false_type | isBitmaskEnum (T) |
Client * | asWrapper (UA_Client *client) noexcept |
bool | operator== (const Client &lhs, const Client &rhs) noexcept |
bool | operator!= (const Client &lhs, const Client &rhs) noexcept |
bool | operator== (const UA_DataType &lhs, const UA_DataType &rhs) noexcept |
bool | operator!= (const UA_DataType &lhs, const UA_DataType &rhs) noexcept |
bool | operator== (const UA_DataTypeMember &lhs, const UA_DataTypeMember &rhs) noexcept |
bool | operator!= (const UA_DataTypeMember &lhs, const UA_DataTypeMember &rhs) noexcept |
bool | operator== (const Event &lhs, const Event &rhs) noexcept |
bool | operator!= (const Event &lhs, const Event &rhs) noexcept |
constexpr void | throwIfBad (UA_StatusCode code) |
template<typename T > | |
bool | operator== (const MonitoredItem< T > &lhs, const MonitoredItem< T > &rhs) noexcept |
template<typename T > | |
bool | operator!= (const MonitoredItem< T > &lhs, const MonitoredItem< T > &rhs) noexcept |
template<typename Connection > | |
bool | operator== (const Node< Connection > &lhs, const Node< Connection > &rhs) noexcept |
template<typename Connection > | |
bool | operator!= (const Node< Connection > &lhs, const Node< Connection > &rhs) noexcept |
constexpr Namespace | getNamespace (DataTypeId) noexcept |
constexpr Namespace | getNamespace (ReferenceTypeId) noexcept |
constexpr Namespace | getNamespace (ObjectTypeId) noexcept |
constexpr Namespace | getNamespace (VariableTypeId) noexcept |
constexpr Namespace | getNamespace (ObjectId) noexcept |
constexpr Namespace | getNamespace (VariableId) noexcept |
constexpr Namespace | getNamespace (MethodId) noexcept |
Server * | asWrapper (UA_Server *server) noexcept |
bool | operator== (const Server &lhs, const Server &rhs) noexcept |
bool | operator!= (const Server &lhs, const Server &rhs) noexcept |
bool | operator== (const Session &lhs, const Session &rhs) noexcept |
bool | operator!= (const Session &lhs, const Session &rhs) noexcept |
template<typename Container > | |
Span (Container &) -> Span< typename Container::value_type > | |
template<typename Container > | |
Span (const Container &) -> Span< const typename Container::value_type > | |
template<typename T , typename U , typename = detail::EnableIfEqualityComparable<T, U>> | |
constexpr bool | operator== (Span< T > lhs, Span< U > rhs) |
template<typename T , typename U , typename = detail::EnableIfEqualityComparable<T, U>> | |
constexpr bool | operator!= (Span< T > lhs, Span< U > rhs) |
template<typename T > | |
bool | operator== (const Subscription< T > &lhs, const Subscription< T > &rhs) noexcept |
template<typename T > | |
bool | operator!= (const Subscription< T > &lhs, const Subscription< T > &rhs) noexcept |
template<typename T > | |
const UA_DataType & | getDataType () noexcept |
bool | operator== (const UA_String &lhs, const UA_String &rhs) noexcept |
bool | operator!= (const UA_String &lhs, const UA_String &rhs) noexcept |
bool | operator== (const String &lhs, std::string_view rhs) noexcept |
bool | operator!= (const String &lhs, std::string_view rhs) noexcept |
bool | operator== (std::string_view lhs, const String &rhs) noexcept |
bool | operator!= (std::string_view lhs, const String &rhs) noexcept |
std::ostream & | operator<< (std::ostream &os, const String &str) |
bool | operator== (const UA_Guid &lhs, const UA_Guid &rhs) noexcept |
bool | operator!= (const UA_Guid &lhs, const UA_Guid &rhs) noexcept |
std::ostream & | operator<< (std::ostream &os, const Guid &guid) |
bool | operator== (const ByteString &lhs, std::string_view rhs) noexcept |
bool | operator!= (const ByteString &lhs, std::string_view rhs) noexcept |
bool | operator== (std::string_view lhs, const ByteString &rhs) noexcept |
bool | operator!= (std::string_view lhs, const ByteString &rhs) noexcept |
std::ostream & | operator<< (std::ostream &os, const XmlElement &xmlElement) |
bool | operator== (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator!= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator< (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator> (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator<= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator>= (const UA_NodeId &lhs, const UA_NodeId &rhs) noexcept |
bool | operator== (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept |
bool | operator!= (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept |
bool | operator< (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept |
bool | operator> (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept |
bool | operator<= (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept |
bool | operator>= (const UA_ExpandedNodeId &lhs, const UA_ExpandedNodeId &rhs) noexcept |
bool | operator== (const UA_QualifiedName &lhs, const UA_QualifiedName &rhs) noexcept |
bool | operator!= (const UA_QualifiedName &lhs, const UA_QualifiedName &rhs) noexcept |
bool | operator== (const UA_LocalizedText &lhs, const UA_LocalizedText &rhs) noexcept |
bool | operator!= (const UA_LocalizedText &lhs, const UA_LocalizedText &rhs) noexcept |
bool | operator== (const NumericRangeDimension &lhs, const NumericRangeDimension &rhs) noexcept |
bool | operator!= (const NumericRangeDimension &lhs, const NumericRangeDimension &rhs) noexcept |
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 |
Variables | |
constexpr UseFutureToken | useFuture |
constexpr UseDeferredToken | useDeferred |
constexpr UseDetachedToken | useDetached |
using opcua::StateCallback = std::function<void()> |
Definition at line 101 of file client.hpp.
using opcua::InactivityCallback = std::function<void()> |
Definition at line 102 of file client.hpp.
using opcua::NamespaceIndex = uint16_t |
Namespace index.
Definition at line 12 of file common.hpp.
using opcua::TypeIndex = uint16_t |
Type index of the UA_TYPES array.
Definition at line 21 of file common.hpp.
Definition at line 22 of file datatype.hpp.
typedef services::MonitoringParametersEx opcua::MonitoringParametersEx = services::MonitoringParametersEx |
Definition at line 17 of file monitoreditem.hpp.
using opcua::LogFunction = std::function<void(LogLevel, LogCategory, std::string_view msg)> |
Log function.
Definition at line 11 of file log_default.hpp.
Definition at line 22 of file subscription.hpp.
Definition at line 24 of file subscription.hpp.
Definition at line 25 of file subscription.hpp.
|
strong |
Attribute identifiers.
Enumerator | |
---|---|
NodeId |
|
NodeClass |
|
BrowseName |
The browse name of a reference type must be unique in a server.
|
DisplayName |
|
Description |
|
WriteMask |
|
UserWriteMask |
In contrast to the write mask, the user write mask is taking access rights into account.
|
IsAbstract |
|
Symmetric |
|
InverseName |
For example, the reference type
|
ContainsNoLoops |
|
EventNotifier |
|
Value |
|
DataType |
|
ValueRank |
|
ArrayDimensions |
Should be unspecified if
|
AccessLevel |
|
UserAccessLevel |
In contrast to the
|
MinimumSamplingInterval |
A minimum sampling interval of
|
Historizing |
|
Executable |
|
UserExecutable |
|
DataTypeDefinition |
|
RolePermissions |
|
UserRolePermissions |
|
AccessRestrictions |
|
AccessLevelEx |
|
Definition at line 28 of file common.hpp.
|
strong |
Node class.
The enum can be used as a bitmask and allows bitwise operations, e.g.:
Enumerator | |
---|---|
Unspecified | |
Object | |
Variable | |
Method | |
ObjectType | |
VariableType | |
ReferenceType | |
DataType | |
View |
Definition at line 138 of file common.hpp.
|
strong |
Access level.
Indicates how the value of an variable can be accessed (read/write) and if it contains current and/or historic data.
Enumerator | |
---|---|
None | |
CurrentRead | |
CurrentWrite | |
HistoryRead | |
HistoryWrite | |
SemanticChange | |
StatusWrite | |
TimestampWrite |
Definition at line 161 of file common.hpp.
|
strong |
Write mask.
Indicates which attributes of a node a writeable.
Definition at line 183 of file common.hpp.
|
strong |
Value rank.
Indicates whether the value attribute of the variable is an array and how many dimensions the array has.
Enumerator | |
---|---|
ScalarOrOneDimension | |
Any | |
Scalar | |
OneOrMoreDimensions | |
OneDimension | |
TwoDimensions | |
ThreeDimensions |
Definition at line 224 of file common.hpp.
|
strong |
Event notifier.
Indicates if a node can be used to subscribe to events or read/write historic events.
Enumerator | |
---|---|
None | |
SubscribeToEvents | |
HistoryRead | |
HistoryWrite |
Definition at line 241 of file common.hpp.
|
strong |
Modelling rules.
Enumerator | |
---|---|
Mandatory | |
Optional | |
ExposesItsArray | |
OptionalPlaceholder | |
MandatoryPlaceholder |
Definition at line 257 of file common.hpp.
|
strong |
Browse direction.
An enumeration that specifies the direction of references to follow.
Enumerator | |
---|---|
Forward | |
Inverse | |
Both | |
Invalid |
Definition at line 273 of file common.hpp.
|
strong |
Timestamps to return.
Enumerator | |
---|---|
Source | |
Server | |
Both | |
Neither | |
Invalid |
Definition at line 287 of file common.hpp.
|
strong |
|
strong |
Message security mode.
Enumerator | |
---|---|
Invalid | Will always be rejected. |
None | No security applied. |
Sign | All messages are signed but not encrypted. |
SignAndEncrypt | All messages are signed and encrypted. |
Definition at line 315 of file common.hpp.
|
strong |
|
strong |
Log category.
Enumerator | |
---|---|
Network | |
SecureChannel | |
Session | |
Server | |
Client | |
Userland | |
SecurityPolicy |
|
strong |
|
strong |
Policies for variant factory methods Variant::fromScalar, Variant::fromArray.
|
strong |
Extension object encoding.
Enumerator | |
---|---|
EncodedNoBody | |
EncodedByteString | |
EncodedXml | |
Decoded | |
DecodedNoDelete |
Convert native UA_Client pointer to its wrapper instance.
The native client must be owned by a Client instance.
Referenced by opcua::services::addNodeAsync(), opcua::services::addReferenceAsync(), opcua::services::browseAsync(), opcua::services::browseNextAsync(), opcua::services::callAsync(), opcua::services::createMonitoredItemDataChangeAsync(), opcua::services::createMonitoredItemEventAsync(), opcua::services::detail::MonitoredItemContext::dataChangeCallbackNativeClient(), opcua::services::detail::MonitoredItemContext::dataChangeCallbackNativeServer(), opcua::services::deleteMonitoredItemAsync(), opcua::services::deleteNodeAsync(), opcua::services::deleteReferenceAsync(), opcua::services::detail::MonitoredItemContext::eventCallbackNative(), opcua::ExpandedNodeId::ExpandedNodeId(), opcua::ExpandedNodeId::ExpandedNodeId(), opcua::DiagnosticInfo::getAdditionalInfo(), opcua::ExtensionObject::getEncodedBody(), opcua::ExtensionObject::getEncodedTypeId(), opcua::DiagnosticInfo::getInnerDiagnosticInfo(), opcua::ExpandedNodeId::getNodeId(), opcua::ExpandedNodeId::getNodeId(), opcua::services::detail::getSingleStatus(), opcua::DataValue::getValue(), opcua::DataValue::getValue(), opcua::DataValue::getValue(), opcua::DataValue::getValue(), opcua::services::modifyMonitoredItem(), opcua::services::modifyMonitoredItemAsync(), opcua::services::readAttributeAsync(), opcua::DataType::setBinaryEncodingId(), opcua::services::setMonitoringMode(), opcua::services::setMonitoringModeAsync(), opcua::DataType::setTypeId(), opcua::DataValue::setValue(), opcua::DataValue::setValue(), opcua::services::detail::SubscriptionContext::statusChangeCallbackNative(), opcua::detail::toNative(), opcua::services::translateBrowsePathToNodeIdsAsync(), opcua::services::writeAttributeAsync(), and opcua::Node< Connection >::writeDataType().
Definition at line 291 of file client.hpp.
|
inlinenoexcept |
Definition at line 295 of file client.hpp.
|
inlinenoexcept |
Definition at line 120 of file datatype.hpp.
|
inlinenoexcept |
Definition at line 124 of file datatype.hpp.
|
inlinenoexcept |
Definition at line 128 of file datatype.hpp.
|
inlinenoexcept |
Definition at line 139 of file datatype.hpp.
|
noexcept |
|
constexpr |
Check the status code and throw a BadStatus exception if the status code is bad.
Definition at line 87 of file exception.hpp.
Referenced by opcua::detail::copy(), opcua::services::createMonitoredItemsDataChangeAsync(), opcua::services::createMonitoredItemsEventAsync(), opcua::services::deleteMonitoredItemsAsync(), opcua::services::deleteSubscriptionsAsync(), opcua::ExtensionObject::fromDecodedCopy(), opcua::services::modifyMonitoredItemsAsync(), opcua::services::modifySubscriptionAsync(), opcua::services::detail::sendRequestAsync(), and opcua::StatusCode::throwIfBad().
|
inlinenoexcept |
Definition at line 101 of file monitoreditem.hpp.
|
inlinenoexcept |
Definition at line 108 of file monitoreditem.hpp.
|
noexcept |
Definition at line 276 of file server.hpp.
|
inlinenoexcept |
Definition at line 280 of file server.hpp.
|
noexcept |
opcua::Span | ( | Container & | ) | -> Span< typename Container::value_type > |
Referenced by opcua::Variant::getArray(), and opcua::Variant::getArray().
opcua::Span | ( | const Container & | ) | -> Span< const typename Container::value_type > |
|
constexpr |
|
inlinenoexcept |
Definition at line 165 of file subscription.hpp.
|
inlinenoexcept |
Definition at line 170 of file subscription.hpp.
|
noexcept |
Definition at line 46 of file typeregistry.hpp.
Referenced by opcua::ExtensionObject::fromDecoded(), opcua::ExtensionObject::fromDecodedCopy(), opcua::detail::getMemberDataType(), opcua::Variant::isType(), opcua::Variant::setArray(), opcua::Variant::setArrayCopy(), opcua::VariableAttributes::setDataType(), opcua::VariableTypeAttributes::setDataType(), opcua::Variant::setScalar(), opcua::Variant::setScalarCopy(), opcua::detail::toNativeArray(), and opcua::Node< Connection >::writeDataType().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
std::ostream & opcua::operator<< | ( | std::ostream & | os, |
const String & | str ) |
|
inlinenoexcept |
std::ostream & opcua::operator<< | ( | std::ostream & | os, |
const Guid & | guid ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
std::ostream & opcua::operator<< | ( | std::ostream & | os, |
const XmlElement & | xmlElement ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |