VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
setter_impl.h File Reference

Abstract base class for all transport-specific setter (field writer) implementations. More...

#include "./node_impl.h"
Include dependency graph for setter_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

 Transport-agnostic base for setter (field writer) node implementations. More...

Namespaces

Detailed Description

Abstract base class for all transport-specific setter (field writer) implementations.

SetterImpl is the intermediate layer between the generic Setter<T> template and a concrete transport backend. It inherits from NodeImpl and adds field-setter semantics:

  • Value write via write() – sends the serialised latest value to all registered getters on the same topic.
  • Synchronous notification via sync() – waits for the written value to be acknowledged or propagated, then fires a completion callback.
Field Model Overview
Unlike the event model (publish/subscribe), the field model maintains a single "latest value" per topic. A Setter always overwrites the previous value; a Getter can retrieve the most recent value at any time or be notified when it changes.
Note
Concrete subclasses must implement write(const Bytes&) and sync(SyncCallback&&).