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

#include <HiveMindHostApiRequestHandler.h>

Inheritance diagram for HiveMindHostApiRequestHandler:
Inheritance graph
Collaboration diagram for HiveMindHostApiRequestHandler:
Collaboration graph

Public Member Functions

 HiveMindHostApiRequestHandler (const IBSP &bsp, ICircularQueue< MessageDTO > &hostQueue, ICircularQueue< MessageDTO > &remoteQueue, const IInterloc &interloc, ILogger &logger)
 
 ~HiveMindHostApiRequestHandler () override=default
 
bool handleRequest (const MessageDTO &message) override
 handles HiveMindHostAPI request and sends a response to the approriate target More...
 
- Public Member Functions inherited from IHiveMindHostApiRequestHandler
virtual ~IHiveMindHostApiRequestHandler ()=default
 

Private Member Functions

bool handleHiveMindHostApiRequest (uint16_t requestId, const MessageDTO &message, const HiveMindHostApiRequestDTO &request)
 

Private Attributes

const IBSPm_bsp
 
ICircularQueue< MessageDTO > & m_hostQueue
 
ICircularQueue< MessageDTO > & m_remoteQueue
 
const IInterlocm_interloc
 
ILoggerm_logger
 

Constructor & Destructor Documentation

◆ HiveMindHostApiRequestHandler()

HiveMindHostApiRequestHandler::HiveMindHostApiRequestHandler ( const IBSP bsp,
ICircularQueue< MessageDTO > &  hostQueue,
ICircularQueue< MessageDTO > &  remoteQueue,
const IInterloc interloc,
ILogger logger 
)

◆ ~HiveMindHostApiRequestHandler()

HiveMindHostApiRequestHandler::~HiveMindHostApiRequestHandler ( )
overridedefault

Member Function Documentation

◆ handleHiveMindHostApiRequest()

bool HiveMindHostApiRequestHandler::handleHiveMindHostApiRequest ( uint16_t  requestId,
const MessageDTO &  message,
const HiveMindHostApiRequestDTO &  request 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleRequest()

bool HiveMindHostApiRequestHandler::handleRequest ( const MessageDTO &  message)
overridevirtual

handles HiveMindHostAPI request and sends a response to the approriate target

Parameters
messagethe message dto to handle
Returns
true if the operation was successfull, false if not

Implements IHiveMindHostApiRequestHandler.

Here is the call graph for this function:

Member Data Documentation

◆ m_bsp

const IBSP& HiveMindHostApiRequestHandler::m_bsp
private

◆ m_hostQueue

ICircularQueue<MessageDTO>& HiveMindHostApiRequestHandler::m_hostQueue
private

◆ m_interloc

const IInterloc& HiveMindHostApiRequestHandler::m_interloc
private

◆ m_logger

ILogger& HiveMindHostApiRequestHandler::m_logger
private

◆ m_remoteQueue

ICircularQueue<MessageDTO>& HiveMindHostApiRequestHandler::m_remoteQueue
private

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