VLink  2.0.0
A high-performance communication middleware
vlink::SetterImpl类 参考abstract

Field-model writer base shared by every transport-specific setter. 更多...

#include <setter_impl.h>

类 vlink::SetterImpl 继承关系图:
vlink::SetterImpl 的协作图:

Public 成员函数

 ~SetterImpl () override
 Releases backend resources. 更多...
 
virtual void write (const Bytes &msg_data)=0
 Writes a new value to every reachable getter. 更多...
 
virtual void sync (SyncCallback &&callback)=0
 Installs the transport-specific late-getter sync callback. 更多...
 

Protected 成员函数

 SetterImpl ()
 Stamps the node as kSetter. 更多...
 

额外继承的成员函数

详细描述

Field-model writer base shared by every transport-specific setter.

Backends override write() to dispatch the serialised value onto the transport and sync() to receive the transport-specific late-join notification so the public Setter can resend its cached value.

构造及析构函数说明

◆ ~SetterImpl()

vlink::SetterImpl::~SetterImpl ( )
override

Releases backend resources.

◆ SetterImpl()

vlink::SetterImpl::SetterImpl ( )
protected

Stamps the node as kSetter.

成员函数说明

◆ sync()

virtual void vlink::SetterImpl::sync ( SyncCallback &&  callback)
pure virtual

Installs the transport-specific late-getter sync callback.

Pure virtual. Backends that detect a freshly attached getter invoke callback so the public Setter can resend the cached latest value; transports without such a signal may simply discard the callback.

参数
callbackCallable invoked when a late-getter sync is requested.

◆ write()

virtual void vlink::SetterImpl::write ( const Bytes msg_data)
pure virtual

Writes a new value to every reachable getter.

Pure virtual. msg_data is produced by Serializer::serialize() in the public layer; the call overwrites any previously stored value on the topic.

参数
msg_dataSerialised value bytes.

该类的文档由以下文件生成: