Stores all the expected command responses
Holds the response patterns that, if matched, belong to this collector
A mutex used for thread safety when accessing/modifying the m_expectedResponses vector
The Connection pointer to use for retrieving byte information.
void setConnection( |
| ) |
Sets the connection points to use for retrieving byte information.
connection | The Connection pointer to use for retrieving byte info. |
void registerResponse( |
| ) |
void unregisterResponse( |
| ) |
Unregisters a ResponsePattern that is within this collector
response | A pointer to the ResponsePattern to unregister |
Gets whether or not this response collector currently has any response patterns to match
true if the response collector has any response patterns to match, false otherwise
bool matchExpected( |
| ) |
Checks to see if the byte(s) passed in match any of the expected responses
data | The DataBuffer containing the bytes to be read and compared against the expected responses, starting at the current read position. |
true if the byte(s) matched an expected response, false otherwise
bool matchExpected( |
| ) |
Checks to see if the wireless packet passed in matches any of the expected responses
packet const WirelessPacket& | The WirelessPacket to be compared against the expected responses |
lastReadPos std::size_t | The last read position where the packet was parsed from. |
true if the packet matched an expected response, false otherwise
bool matchExpected( |
| ) |
Checks to see if the InertialDataField passed in matches any of the expected responses
field | The InertialDataField to be compared against the expected responses |
true if the packet matched an expected response, false otherwise