libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Topic::MessageView< Data > Struct Template Reference

带时间戳和 payload 指针的只读消息视图 / Read-only message view carrying a timestamp and a payload pointer More...

#include <topic.hpp>

Collaboration diagram for LibXR::Topic::MessageView< Data >:
[legend]

Data Fields

MicrosecondTimestamp timestamp
 消息时间戳。Message timestamp.
 
Data * data
 

Detailed Description

template<typename Data>
struct LibXR::Topic::MessageView< Data >

带时间戳和 payload 指针的只读消息视图 / Read-only message view carrying a timestamp and a payload pointer

Template Parameters
Datapayload 类型 / Payload type

Definition at line 134 of file topic.hpp.

Field Documentation

◆ data

template<typename Data >
Data* LibXR::Topic::MessageView< Data >::data

指向本次发布 payload 对象的指针。Pointer to the payload object of this publish.

Definition at line 138 of file topic.hpp.

◆ timestamp

template<typename Data >
MicrosecondTimestamp LibXR::Topic::MessageView< Data >::timestamp

消息时间戳。Message timestamp.

Definition at line 137 of file topic.hpp.


The documentation for this struct was generated from the following file: