|
VLink
2.0.0
A high-performance communication middleware
|
Transport-neutral base class for every field-model setter (latest-value writer). 更多...
#include "./node_impl.h"类 | |
| class | vlink::SetterImpl |
| Field-model writer base shared by every transport-specific setter. 更多... | |
命名空间 | |
| vlink | |
Transport-neutral base class for every field-model setter (latest-value writer).
This is an internal implementation header used by the public Setter template; applications should depend on setter.h. SetterImpl extends NodeImpl with the field-model write semantics: writing overwrites the topic's single tracked value and the backend may notify the setter via a sync callback when a late getter needs the cached value resent.
impl_type with kSetter so the discovery and recording layers correctly identify outgoing field updates.Conf::create_setter().init() / deinit() inherited from NodeImpl bring the transport up.sync() is invoked by the public Setter once the user wires a late-getter sync callback.write() pushes the serialised value to all matched getters.| Capability | Provider |
|---|---|
| Wire write | Subclass override of write() |
| Late-getter resend | Subclass override of sync() |
| Method | Default | Subclass duty |
|---|---|---|
write(const Bytes&) | Pure virtual | Push frame to transport |
sync(SyncCallback&&) | Pure virtual | Bind late-join callback |