open62541pp 0.15.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::TypeRegistry< T, Enabled > Struct Template Reference

Detailed Description

template<typename T, typename Enabled = void>
struct opcua::TypeRegistry< T, Enabled >

Type registry.

The type registry is used to derive the corresponding UA_DataType object from template types.

Custom data types can be registered with template specializations:

namespace ::opcua {
template <>
struct TypeRegistry<MyCustomType> {
static const UA_DataType& getDataType() noexcept {
// ...
}
};
}
const UA_DataType & getDataType() noexcept

Definition at line 29 of file typeregistry.hpp.