Public Member Functions | Private Attributes | List of all members
MidReplyObject Class Reference

Reply object that only checks the message identifier. More...

#include <replyobject.h>

Inheritance diagram for MidReplyObject:
Inheritance graph
[legend]

Public Member Functions

virtual bool isReplyFor (XsMessage const &message)
 
 MidReplyObject (uint8_t messageId)
 MidReplyObject constructor. More...
 
virtual uint8_t msgId () const
 
 ~MidReplyObject (void)
 MidReplyObject destructor. More...
 
- Public Member Functions inherited from ReplyObject
XsMessage message (uint32_t timeout)
 Blocks until a message has been set by setMessage() then returns that message. More...
 
 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

uint8_t m_messageId
 

Detailed Description

Reply object that only checks the message identifier.

Definition at line 108 of file replyobject.h.

Constructor & Destructor Documentation

◆ MidReplyObject()

MidReplyObject::MidReplyObject ( uint8_t  messageId)

MidReplyObject constructor.

Parameters
[in]messageIdthe id of the message to wait for

Definition at line 120 of file replyobject.cpp.

◆ ~MidReplyObject()

MidReplyObject::~MidReplyObject ( void  )

MidReplyObject destructor.

Definition at line 128 of file replyobject.cpp.

Member Function Documentation

◆ isReplyFor()

bool MidReplyObject::isReplyFor ( XsMessage const &  msg)
virtual
Returns
True when a message is a valid reply message for this reply object
Parameters
[in]msgthe message to check

Implements ReplyObject.

Definition at line 142 of file replyobject.cpp.

◆ msgId()

uint8_t MidReplyObject::msgId ( ) const
virtual
Returns
the message ID that this reply object is waiting for

Implements ReplyObject.

Definition at line 134 of file replyobject.cpp.

Member Data Documentation

◆ m_messageId

uint8_t MidReplyObject::m_messageId
private

Definition at line 117 of file replyobject.h.


The documentation for this class was generated from the following files:


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21