HiveMind
HiveConnectHiveMindApiMessageHandler.h
Go to the documentation of this file.
1 #ifndef __HIVECONNECTHIVEMINDAPIMESSAGEHANDLER_H_
2 #define __HIVECONNECTHIVEMINDAPIMESSAGEHANDLER_H_
3 
5 #include <bsp/IBSP.h>
6 #include <cpp-common/ICircularQueue.h>
7 #include <logger/ILogger.h>
8 #include <pheromones/MessageDTO.h>
9 
11  public:
12  HiveConnectHiveMindApiMessageHandler(ICircularQueue<MessageDTO>& hostQueue,
13  ICircularQueue<MessageDTO>& remoteQueue,
14  ILogger& logger);
15 
16  ~HiveConnectHiveMindApiMessageHandler() override = default;
17 
18  bool handleMessage(uint16_t sourceId,
19  uint16_t destId,
20  const HiveConnectHiveMindApiDTO& message) override;
21 
22  private:
23  ICircularQueue<MessageDTO>& m_hostQueue;
24  ICircularQueue<MessageDTO>& m_remoteQueue;
26 };
27 
28 #endif // __HIVECONNECTHIVEMINDAPIMESSAGEHANDLER_H_
HiveConnectHiveMindApiMessageHandler::m_logger
ILogger & m_logger
Definition: HiveConnectHiveMindApiMessageHandler.h:25
IBSP.h
HiveConnectHiveMindApiMessageHandler::handleMessage
bool handleMessage(uint16_t sourceId, uint16_t destId, const HiveConnectHiveMindApiDTO &message) override
handles HiveConnectHiveMindApi
Definition: HiveConnectHiveMindApiMessageHandler.cpp:9
HiveConnectHiveMindApiMessageHandler::m_hostQueue
ICircularQueue< MessageDTO > & m_hostQueue
Definition: HiveConnectHiveMindApiMessageHandler.h:23
HiveConnectHiveMindApiMessageHandler::HiveConnectHiveMindApiMessageHandler
HiveConnectHiveMindApiMessageHandler(ICircularQueue< MessageDTO > &hostQueue, ICircularQueue< MessageDTO > &remoteQueue, ILogger &logger)
Definition: HiveConnectHiveMindApiMessageHandler.cpp:3
HiveConnectHiveMindApiMessageHandler
Definition: HiveConnectHiveMindApiMessageHandler.h:10
HiveConnectHiveMindApiMessageHandler::~HiveConnectHiveMindApiMessageHandler
~HiveConnectHiveMindApiMessageHandler() override=default
HiveConnectHiveMindApiMessageHandler::m_remoteQueue
ICircularQueue< MessageDTO > & m_remoteQueue
Definition: HiveConnectHiveMindApiMessageHandler.h:24
IHiveConnectHiveMindApiMessageHandler
Handles HiveConnectHiveMindApi messages and makes the proper request.
Definition: IHiveConnectHiveMindApiMessageHandler.h:9
ILogger
A logger class with basic logging capabilities.
Definition: ILogger.h:35
IHiveConnectHiveMindApiMessageHandler.h
ILogger.h