chrono::synchrono::SynSensorMessage Class Reference

Description

Wraps data received from a flatbuffer sensor message into a corresponding C++ class.

#include <SynSensorMessage.h>

Inheritance diagram for chrono::synchrono::SynSensorMessage:
Collaboration diagram for chrono::synchrono::SynSensorMessage:

Public Member Functions

 SynSensorMessage (int rank)
 Construct a new SensorMessageState object. More...
 
virtual void StateFromMessage (const SynFlatBuffers::Message *message) override
 Generates and sets the state of this message from flatbuffer message. More...
 
virtual FlatBufferMessage MessageFromState (flatbuffers::FlatBufferBuilder &builder) override
 Generates a SynFlatBuffers::Message from the message state. More...
 
virtual std::shared_ptr< SynMessageStateGetState () override
 Get the SensorMessageState object. More...
 
- Public Member Functions inherited from chrono::synchrono::SynMessage
 SynMessage (int rank, SynMessageType type)
 Construct a new SynMessage object. More...
 
virtual ~SynMessage ()
 Destroy the SynMessage object.
 
SynMessageType GetType ()
 Get the SynMessageType object. More...
 
unsigned int GetRank ()
 Get the rank from which this message originates. More...
 

Additional Inherited Members

- Protected Attributes inherited from chrono::synchrono::SynMessage
int m_rank
 rank of which sent or maintains this message
 
SynMessageType m_type
 type of which this message is
 

Constructor & Destructor Documentation

◆ SynSensorMessage()

chrono::synchrono::SynSensorMessage::SynSensorMessage ( int  rank)

Construct a new SensorMessageState object.

Constructors.

Parameters
rankthe rank of this message

Member Function Documentation

◆ GetState()

virtual std::shared_ptr<SynMessageState> chrono::synchrono::SynSensorMessage::GetState ( )
inlineoverridevirtual

Get the SensorMessageState object.

Returns
std::shared_ptr<SensorMessageState> the state associated with this message

Implements chrono::synchrono::SynMessage.

◆ MessageFromState()

FlatBufferMessage chrono::synchrono::SynSensorMessage::MessageFromState ( flatbuffers::FlatBufferBuilder &  builder)
overridevirtual

Generates a SynFlatBuffers::Message from the message state.

Generate FlatBuffers message from this message's state.

Parameters
builderthe flatbuffer builder used to construct messages
Returns
flatbuffers::Offset<SynFlatBuffers::Message> the generated message

Implements chrono::synchrono::SynMessage.

◆ StateFromMessage()

void chrono::synchrono::SynSensorMessage::StateFromMessage ( const SynFlatBuffers::Message *  message)
overridevirtual

Generates and sets the state of this message from flatbuffer message.

Generate state from FlatBuffers message.

Parameters
messagethe flatbuffer message to convert to a MessageState object

Implements chrono::synchrono::SynMessage.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynSensorMessage.h
  • /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynSensorMessage.cpp