3 #include "../global.hpp" 5 #include "exception.hpp" 12 inline HandleGuard<OpcUa::BrowseFilter>::HandleGuard(
void * handle) noexcept
13 : HandleGuard<OpcUa::BrowseFilter>(handle, [](
void* handle)
15 CVB_CALL_CAPI(ReleaseObject(handle));
44 auto tmp =
new CExports::TCVOPCBrowseFilter;
45 tmp->ReferenceDirection = static_cast<CExports::TCVOPCReferenceDirection>(direction);
46 tmp->ReferenceTypeId = static_cast<CExports::TCVOPCReferenceType>(referenceType);
47 tmp->MaxReferences = static_cast<CExports::cvbval_t>(maxReferences);
48 tmp->IncludeSubTypes = static_cast<CExports::TCVOPCBrowseSubType>(subTypes);
49 tmp->NodeClassMask = static_cast<CExports::cvbval_t>(nodeClassMask);
51 HandleGuard<BrowseFilter> guard(tmp);
87 return handle_.Handle();
94 explicit BrowseFilter(HandleGuard<BrowseFilter> && guard) noexcept
95 : handle_(std::move(guard))
100 explicit BrowseFilter(
std::function<HandleGuard<BrowseFilter>()> creator)
101 : BrowseFilter(creator())
104 HandleGuard<BrowseFilter> handle_;
The BrowseFilter serves to specify the parameter of a browse operation on an OPCUA node object.
Definition: browse_filter.hpp:26
BrowseSubType
Define whether sub types of nodes should be included as part of a BaseNode::Browse operation.
Definition: opcua.hpp:306
const int CVB_ERROR
Generic unspecified error.
Definition: exception.hpp:24
Root namespace for the Image Manager interface.
Definition: version.hpp:11
void * Handle() const noexcept
Returns C-API style handle to BaseNode Object.
Definition: browse_filter.hpp:85
ReferenceDirection
Describes the direction for a OpcUa::Reference.
Definition: opcua.hpp:115
Special runtime exception to carry a native error code.
Definition: exception.hpp:24
ReferenceType
Used for defining References between Nodes. See OpcUa::Server::AddReference.
Definition: opcua.hpp:221
static BrowseFilterPtr Create()
Creates an even simpler BrowseFilter for browsing the OPCUA client.
Definition: browse_filter.hpp:76
static BrowseFilterPtr Create(OpcUa::ReferenceDirection direction, OpcUa::ReferenceType referenceType, std::size_t maxReferences, BrowseSubType subTypes, std::uint32_t nodeClassMask)
Creates a BrowseFilter for browsing the OPCUA client.
Definition: browse_filter.hpp:40
static BrowseFilterPtr Create(OpcUa::ReferenceType referenceTypeID)
Creates a simpler BrowseFilter for browsing the OPCUA client.
Definition: browse_filter.hpp:66