Abstract reply object. Blocks on a semaphore when requesting the message until the message has been set by the reply monitor. More...
#include <replyobject.h>
Public Member Functions | |
virtual bool | isReplyFor (XsMessage const &message)=0 |
XsMessage | message (uint32_t timeout) |
Blocks until a message has been set by setMessage() then returns that message. More... | |
virtual uint8_t | msgId () const =0 |
ReplyObject () | |
Default constructor. More... | |
void | setMessage (const XsMessage &msg) |
Sets a message as reply message and trigger the semaphore which will unblock any waiting message() calls. More... | |
virtual | ~ReplyObject () |
Private Attributes | |
bool | m_delivered |
XsMessage | m_message |
xsens::Mutex * | m_mutex |
xsens::WaitCondition * | m_waitCondition |
Abstract reply object. Blocks on a semaphore when requesting the message until the message has been set by the reply monitor.
Definition at line 81 of file replyobject.h.
|
explicit |
Default constructor.
Definition at line 73 of file replyobject.cpp.
|
virtual |
Definition at line 80 of file replyobject.cpp.
|
pure virtual |
[in] | message | The message to check |
Implemented in MidAndDataReplyObject, and MidReplyObject.
Blocks until a message has been set by setMessage() then returns that message.
Definition at line 105 of file replyobject.cpp.
|
pure virtual |
Implemented in MidAndDataReplyObject, and MidReplyObject.
void ReplyObject::setMessage | ( | const XsMessage & | msg | ) |
Sets a message as reply message and trigger the semaphore which will unblock any waiting message() calls.
Definition at line 94 of file replyobject.cpp.
|
private |
Definition at line 102 of file replyobject.h.
|
private |
Definition at line 101 of file replyobject.h.
|
private |
Definition at line 99 of file replyobject.h.
|
private |
Definition at line 100 of file replyobject.h.