|
Tkrzw
|
Messsage reader. More...
#include <tkrzw_message_queue.h>
Public Member Functions | |
| ~Reader () | |
| Destructor. | |
| Status | Read (int64_t *timestamp, std::string *message, double wait_time=0) |
| Reads a message from the queue. | |
| int64_t | GetTimestamp () |
| Gets the latest timestamp. | |
Friends | |
| class | MessageQueue |
Messsage reader.
| tkrzw::MessageQueue::Reader::~Reader | ( | ) |
Destructor.
| Status tkrzw::MessageQueue::Reader::Read | ( | int64_t * | timestamp, |
| std::string * | message, | ||
| double | wait_time = 0 |
||
| ) |
Reads a message from the queue.
| timestamp | The pointer to a variable to store the timestamp in milliseconds of the message. |
| message | The pointer to a string object to store the msssage data. |
| wait_time | The time in seconds to wait for the next log. Zero means no wait. Negative means unlimited. |
| int64_t tkrzw::MessageQueue::Reader::GetTimestamp | ( | ) |
Gets the latest timestamp.