Minimal interface for accessing the underlying native transport handle.
More...
#include <node_impl.h>
|
| virtual std::any | get_native_handle () const |
| | Returns the underlying native transport handle wrapped in std::any.
|
Minimal interface for accessing the underlying native transport handle.
Concrete transport backends (e.g. DdsPublisherImpl) inherit from both AbstractNode and their corresponding NodeImpl subclass. get_native_handle() returns an std::any wrapping the backend-specific handle, allowing advanced users to access transport internals without breaking the VLink API boundary.
- Note
- The base implementation returns an empty
std::any.
◆ AbstractNode()
| vlink::AbstractNode::AbstractNode |
( |
| ) |
|
|
protected |
◆ ~AbstractNode()
| virtual vlink::AbstractNode::~AbstractNode |
( |
| ) |
|
|
protectedvirtual |
◆ get_native_handle()
| virtual std::any vlink::AbstractNode::get_native_handle |
( |
| ) |
const |
|
virtual |
Returns the underlying native transport handle wrapped in std::any.
Transport-specific subclasses override this to return, for example, a DDS DataWriter or DataReader pointer. Callers must std::any_cast to the correct type. The base implementation returns an empty std::any.
- Returns
- Backend-specific handle, or empty
std::any in the base class.
The documentation for this class was generated from the following file: