Message Class Reference
Represents a message in a bag file. More...
#include <Message.hh>
Public Member Functions | |
| Message () | |
| Default constructor.   | |
| Message (const Message &_other)=delete | |
| No copy constructor to prevent borrowed pointers from living beyond creator's expectations.   | |
| Message (const std::chrono::nanoseconds &_timeRecv, const void *_data, std::size_t _dataLen, const char *_type, std::size_t _typeLen, const char *_topic, std::size_t _topicLen) | |
| Construct with data.   | |
| Message (Message &&_other)=delete | |
| No move constructor to prevent borrowed pointers from living beyond creator's expectations.   | |
| ~Message () | |
| Destructor.   | |
| std::string | Data () const | 
| Get the message data.   | |
| const std::chrono::nanoseconds & | TimeReceived () const | 
| Return the time the message was received.   | |
| std::string | Topic () const | 
| Get the Topic name as a string.   | |
| std::string | Type () const | 
| Get the message type as a string.   | |
Detailed Description
Represents a message in a bag file.
Constructor & Destructor Documentation
◆ Message() [1/4]
| Message | ( | ) | 
Default constructor.
◆ Message() [2/4]
| Message | ( | const std::chrono::nanoseconds & | _timeRecv, | 
| const void * | _data, | ||
| std::size_t | _dataLen, | ||
| const char * | _type, | ||
| std::size_t | _typeLen, | ||
| const char * | _topic, | ||
| std::size_t | _topicLen | ||
| ) | 
Construct with data.
◆ Message() [3/4]
No move constructor to prevent borrowed pointers from living beyond creator's expectations.
◆ Message() [4/4]
No copy constructor to prevent borrowed pointers from living beyond creator's expectations.
◆ ~Message()
| ~Message | ( | ) | 
Destructor.
Member Function Documentation
◆ Data()
| std::string Data | ( | ) | const | 
Get the message data.
- Returns
 - The raw data for this message
 
◆ TimeReceived()
| const std::chrono::nanoseconds & TimeReceived | ( | ) | const | 
Return the time the message was received.
- Returns
 - The time the message was received
 
◆ Topic()
| std::string Topic | ( | ) | const | 
Get the Topic name as a string.
- Returns
 - The topic for the message
 
◆ Type()
| std::string Type | ( | ) | const | 
Get the message type as a string.
- Returns
 - The message type name
 
The documentation for this class was generated from the following file: