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

#include <HiveConnectHiveMindApiMessageHandler.h>

Inheritance diagram for HiveConnectHiveMindApiMessageHandler:
Inheritance graph
Collaboration diagram for HiveConnectHiveMindApiMessageHandler:
Collaboration graph

Public Member Functions

 HiveConnectHiveMindApiMessageHandler (ICircularQueue< MessageDTO > &hostQueue, ICircularQueue< MessageDTO > &remoteQueue, ILogger &logger)
 
 ~HiveConnectHiveMindApiMessageHandler () override=default
 
bool handleMessage (uint16_t sourceId, uint16_t destId, const HiveConnectHiveMindApiDTO &message) override
 handles HiveConnectHiveMindApi More...
 
- Public Member Functions inherited from IHiveConnectHiveMindApiMessageHandler
virtual ~IHiveConnectHiveMindApiMessageHandler ()=default
 

Private Attributes

ICircularQueue< MessageDTO > & m_hostQueue
 
ICircularQueue< MessageDTO > & m_remoteQueue
 
ILoggerm_logger
 

Constructor & Destructor Documentation

◆ HiveConnectHiveMindApiMessageHandler()

HiveConnectHiveMindApiMessageHandler::HiveConnectHiveMindApiMessageHandler ( ICircularQueue< MessageDTO > &  hostQueue,
ICircularQueue< MessageDTO > &  remoteQueue,
ILogger logger 
)

◆ ~HiveConnectHiveMindApiMessageHandler()

HiveConnectHiveMindApiMessageHandler::~HiveConnectHiveMindApiMessageHandler ( )
overridedefault

Member Function Documentation

◆ handleMessage()

bool HiveConnectHiveMindApiMessageHandler::handleMessage ( uint16_t  sourceId,
uint16_t  destId,
const HiveConnectHiveMindApiDTO &  message 
)
overridevirtual

handles HiveConnectHiveMindApi

Parameters
sourceIdthe source id of the message
destIdthe source id of the message
messagethe message dto to handle
Returns
true if the operation was successfull, false if not

Implements IHiveConnectHiveMindApiMessageHandler.

Here is the call graph for this function:

Member Data Documentation

◆ m_hostQueue

ICircularQueue<MessageDTO>& HiveConnectHiveMindApiMessageHandler::m_hostQueue
private

◆ m_logger

ILogger& HiveConnectHiveMindApiMessageHandler::m_logger
private

◆ m_remoteQueue

ICircularQueue<MessageDTO>& HiveConnectHiveMindApiMessageHandler::m_remoteQueue
private

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