open62541pp 0.17.0
C++ wrapper of open62541
|
#include <types.hpp>
UA_StatusCode wrapper class.
StatusCode can be used interchangeably with UA_StatusCode due to implicit conversions (without any overhead) but provides some methods to simplify the handling with status codes.
Public Member Functions | |
constexpr | StatusCode () noexcept=default |
constexpr | StatusCode (UA_StatusCode code) noexcept |
constexpr UA_StatusCode | get () const noexcept |
std::string_view | name () const noexcept |
constexpr bool | isGood () const noexcept |
constexpr bool | isUncertain () const noexcept |
constexpr bool | isBad () const noexcept |
constexpr void | throwIfBad () const |
![]() | |
constexpr | Wrapper () noexcept=default |
constexpr | Wrapper (const UA_StatusCode &native) noexcept |
constexpr | Wrapper (UA_StatusCode &&native) noexcept |
constexpr Wrapper & | operator= (const UA_StatusCode &native) noexcept |
constexpr Wrapper & | operator= (UA_StatusCode &&native) noexcept |
constexpr | operator UA_StatusCode & () noexcept |
constexpr | operator const UA_StatusCode & () const noexcept |
constexpr UA_StatusCode * | operator-> () noexcept |
constexpr const UA_StatusCode * | operator-> () const noexcept |
constexpr UA_StatusCode * | handle () noexcept |
constexpr const UA_StatusCode * | handle () const noexcept |
constexpr void | swap (Wrapper &other) noexcept |
constexpr void | swap (UA_StatusCode &native) noexcept |
Additional Inherited Members | |
![]() | |
using | NativeType |
![]() | |
constexpr const UA_StatusCode & | native () const noexcept |
constexpr UA_StatusCode & | native () noexcept |
![]() | |
constexpr WrapperType * | asWrapper (NativeType *native) noexcept |
constexpr const WrapperType * | asWrapper (const NativeType *native) noexcept |
constexpr WrapperType & | asWrapper (NativeType &native) noexcept |
constexpr const WrapperType & | asWrapper (const NativeType &native) noexcept |
constexpr NativeType * | asNative (WrapperType *wrapper) noexcept |
constexpr const NativeType * | asNative (const WrapperType *wrapper) noexcept |
constexpr NativeType & | asNative (WrapperType &wrapper) noexcept |
constexpr const NativeType & | asNative (const WrapperType &wrapper) noexcept |
|
constexprdefaultnoexcept |
Create a StatusCode with the default status code UA_STATUSCODE_GOOD
.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Get human-readable name of the StatusCode.
This feature might be disabled to create a smaller binary with the UA_ENABLE_STATUSCODE_DESCRIPTIONS
build-flag. Then the function returns an empty string for every StatusCode.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
Check if the status code is bad.
Definition at line 78 of file types.hpp.
Referenced by opcua::BadResult::BadResult().
|
inlineconstexpr |
Throw a BadStatus exception if the status code is bad.
BadStatus |
Definition at line 84 of file types.hpp.
Referenced by opcua::Node< Connection >::addModellingRule(), opcua::Node< Connection >::addReference(), opcua::MonitoredItem< Connection >::deleteMonitoredItem(), opcua::Node< Connection >::deleteNode(), opcua::Node< Connection >::deleteReference(), opcua::Subscription< Connection >::deleteSubscription(), opcua::MonitoredItem< Connection >::setMonitoringParameters(), opcua::Subscription< Connection >::subscribeDataChange(), opcua::Subscription< Connection >::subscribeEvent(), opcua::Node< Connection >::writeAccessLevel(), opcua::Node< Connection >::writeArrayDimensions(), opcua::Node< Connection >::writeContainsNoLoops(), opcua::Node< Connection >::writeDataType(), opcua::Node< Connection >::writeDataValue(), opcua::Node< Connection >::writeDescription(), opcua::Node< Connection >::writeDisplayName(), opcua::Node< Connection >::writeEventNotifier(), opcua::Node< Connection >::writeExecutable(), opcua::Node< Connection >::writeHistorizing(), opcua::Node< Connection >::writeInverseName(), opcua::Node< Connection >::writeIsAbstract(), opcua::Node< Connection >::writeMinimumSamplingInterval(), opcua::Node< Connection >::writeSymmetric(), opcua::Node< Connection >::writeUserAccessLevel(), opcua::Node< Connection >::writeUserExecutable(), opcua::Node< Connection >::writeUserWriteMask(), opcua::Node< Connection >::writeValue(), opcua::Node< Connection >::writeValueRank(), and opcua::Node< Connection >::writeWriteMask().