open62541pp 0.15.0
C++ wrapper of open62541
|
#include <pluginadapter.hpp>
Base class to implement plugin adapters.
Plugin adapters will provide a different (modern) interface for open62541's native plugins. For example AccessControlBase is the plugin adapter for UA_AccessControl.
The native plugin is created via the PluginAdapter::create function. The PluginAdapter::clear function is used to clear the created plugin after usage. Usually the native plugin carries a void* context
pointer which will refer back to the plugin adapter. Make sure that the plugin adapter outlives the native plugin to avoid dangling pointers.
T | Type of the native plugin, e.g. UA_AccessControl |
Definition at line 19 of file pluginadapter.hpp.
Public Types | |
using | PluginType = T |
Public Member Functions | |
PluginAdapter ()=default | |
virtual | ~PluginAdapter ()=default |
PluginAdapter (const PluginAdapter &)=default | |
PluginAdapter (PluginAdapter &&) noexcept=default | |
PluginAdapter & | operator= (const PluginAdapter &)=default |
PluginAdapter & | operator= (PluginAdapter &&) noexcept=default |
virtual T | create ()=0 |
virtual void | clear (T &plugin) noexcept=0 |
virtual void | clear (T *&plugin) noexcept |
using opcua::PluginAdapter< T >::PluginType = T |
Definition at line 21 of file pluginadapter.hpp.
|
default |
|
virtualdefault |
|
default |
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
|
pure virtual |
Implemented in opcua::AccessControlBase, and opcua::LoggerBase.
|
pure virtualnoexcept |
Implemented in opcua::AccessControlBase, and opcua::LoggerBase.
Referenced by opcua::PluginAdapter< T >::clear().
|
inlinevirtualnoexcept |
Definition at line 35 of file pluginadapter.hpp.