#include <BittyBuzzMessageHandler.h>
◆ BittyBuzzMessageHandler()
BittyBuzzMessageHandler::BittyBuzzMessageHandler |
( |
const IBittyBuzzClosureRegister & |
closureRegister, |
|
|
ICircularQueue< MessageDTO > & |
inputQueue, |
|
|
ICircularQueue< MessageDTO > & |
hostQueue, |
|
|
ICircularQueue< MessageDTO > & |
remoteQueue, |
|
|
const IBSP & |
bsp, |
|
|
ILogger & |
logger |
|
) |
| |
◆ ~BittyBuzzMessageHandler()
BittyBuzzMessageHandler::~BittyBuzzMessageHandler |
( |
| ) |
|
|
overridedefault |
◆ clearMessages()
void BittyBuzzMessageHandler::clearMessages |
( |
| ) |
|
|
overridevirtual |
◆ handleBuzzMessages()
bool BittyBuzzMessageHandler::handleBuzzMessages |
( |
const BuzzMessagesDTO & |
msg | ) |
|
|
private |
◆ handleFunctionCallRequest()
FunctionCallResponseDTO BittyBuzzMessageHandler::handleFunctionCallRequest |
( |
const FunctionCallRequestDTO & |
functionRequest | ) |
|
|
private |
◆ handleFunctionDescriptionRequest()
FunctionDescriptionResponseDTO BittyBuzzMessageHandler::handleFunctionDescriptionRequest |
( |
const FunctionDescriptionRequestDTO & |
functionDescRequest | ) |
|
|
private |
◆ handleFunctionListLengthRequest()
FunctionListLengthResponseDTO BittyBuzzMessageHandler::handleFunctionListLengthRequest |
( |
const FunctionListLengthRequestDTO & |
functionLengthRequest | ) |
|
|
private |
◆ handleGenericResponse()
bool BittyBuzzMessageHandler::handleGenericResponse |
( |
const GenericResponseDTO & |
response | ) |
|
|
staticprivate |
◆ handleMessage()
bool BittyBuzzMessageHandler::handleMessage |
( |
const MessageDTO & |
message | ) |
|
|
private |
◆ handleRequest()
ResponseDTO BittyBuzzMessageHandler::handleRequest |
( |
const RequestDTO & |
request | ) |
|
|
private |
◆ handleResponse()
bool BittyBuzzMessageHandler::handleResponse |
( |
const ResponseDTO & |
response | ) |
|
|
private |
◆ handleUserCallRequest()
UserCallResponseDTO BittyBuzzMessageHandler::handleUserCallRequest |
( |
const UserCallRequestDTO & |
userRequest | ) |
|
|
private |
◆ handleUserCallResponse()
bool BittyBuzzMessageHandler::handleUserCallResponse |
( |
const UserCallResponseDTO & |
response | ) |
|
|
staticprivate |
◆ handleVmMessage()
bool BittyBuzzMessageHandler::handleVmMessage |
( |
const VmMessageDTO & |
vmMsg | ) |
|
|
private |
◆ messageQueueLength()
uint16_t BittyBuzzMessageHandler::messageQueueLength |
( |
| ) |
const |
|
overridevirtual |
gets the number of message to be processed in the queue
- Returns
- The number of message in the queue
Implements IBittyBuzzMessageHandler.
◆ processMessage()
bool BittyBuzzMessageHandler::processMessage |
( |
| ) |
|
|
overridevirtual |
process a message and sends a response if needed. A response is sent to the appropriate queue on a request
- Returns
- true if the operation was successfull or there was no message to process, false if an reply could not be send (i.e. the queue was full or the message was could not be understood)
Implements IBittyBuzzMessageHandler.
◆ m_bsp
const IBSP& BittyBuzzMessageHandler::m_bsp |
|
private |
◆ m_closureRegister
◆ m_hostQueue
ICircularQueue<MessageDTO>& BittyBuzzMessageHandler::m_hostQueue |
|
private |
◆ m_inputQueue
ICircularQueue<MessageDTO>& BittyBuzzMessageHandler::m_inputQueue |
|
private |
◆ m_logger
ILogger& BittyBuzzMessageHandler::m_logger |
|
private |
◆ m_remoteQueue
ICircularQueue<MessageDTO>& BittyBuzzMessageHandler::m_remoteQueue |
|
private |
The documentation for this class was generated from the following files: