chrono::synchrono::SynApproachMessage Class Reference
Description
Approach message.
#include <SynApproachMessage.h>
Inheritance diagram for chrono::synchrono::SynApproachMessage:
Collaboration diagram for chrono::synchrono::SynApproachMessage:
Public Member Functions | |
SynApproachMessage (unsigned int source_id, unsigned int destination_id) | |
Constructor. More... | |
virtual void | ConvertFromFlatBuffers (const SynFlatBuffers::Message *message) override |
Converts a received flatbuffer message to a SynMessage. More... | |
void | ConvertSPATFromFlatBuffers (const SynFlatBuffers::Approach::State *message) |
Converts a received spat flatbuffer message to a SynMessage. More... | |
virtual FlatBufferMessage | ConvertToFlatBuffers (flatbuffers::FlatBufferBuilder &builder) override |
Converts this object to a flatbuffer message. More... | |
Public Attributes | |
std::vector< ApproachLane > | lanes |
Additional Inherited Members |
Constructor & Destructor Documentation
◆ SynApproachMessage()
chrono::synchrono::SynApproachMessage::SynApproachMessage | ( | unsigned int | source_id, |
unsigned int | destination_id | ||
) |
Constructor.
- Parameters
-
source_id the id of the source to which the message is sent from destination_id the id of the destination to which the message is sent to
Member Function Documentation
◆ ConvertFromFlatBuffers()
|
overridevirtual |
Converts a received flatbuffer message to a SynMessage.
- Parameters
-
message the flatbuffer message to convert to a SynMessage
Implements chrono::synchrono::SynMessage.
◆ ConvertSPATFromFlatBuffers()
void chrono::synchrono::SynApproachMessage::ConvertSPATFromFlatBuffers | ( | const SynFlatBuffers::Approach::State * | message | ) |
Converts a received spat flatbuffer message to a SynMessage.
- Parameters
-
message the spat flatbuffer message to convert to a SynMessage
◆ ConvertToFlatBuffers()
|
overridevirtual |
Converts this object to a flatbuffer message.
- Parameters
-
builder a flatbuffer builder to construct the message with
- Returns
- FlatBufferMessage the constructed flatbuffer message
Implements chrono::synchrono::SynMessage.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynApproachMessage.h
- /builds/uwsbel/chrono/src/chrono_synchrono/flatbuffer/message/SynApproachMessage.cpp