Go to the documentation of this file. 1 #ifndef __BITTYBUZZMESSAGESERVICE_H_
2 #define __BITTYBUZZMESSAGESERVICE_H_
7 #include <cpp-common/ICircularQueue.h>
13 ICircularQueue<MessageDTO>& remoteQueue,
14 ICircularQueue<MessageDTO>& buzzQueue,
21 const char* functionName,
22 const FunctionCallArgumentDTO* args,
23 uint16_t argsLength)
override;
26 const char* functionName,
27 const FunctionCallArgumentDTO* args,
28 uint16_t argsLength)
override;
33 std::optional<std::reference_wrapper<BuzzMessageDTO>>
getNextMessage();
44 #endif // __BITTYBUZZMESSAGESERVICE_H_
~BittyBuzzMessageService() override=default
bool queueBuzzMessages() override
queues the buzz messages
Definition: BittyBuzzMessageService.cpp:66
ICircularQueue< MessageDTO > & m_remoteQueue
Definition: BittyBuzzMessageService.h:37
BittyBuzzMessageService(ICircularQueue< MessageDTO > &hostQueue, ICircularQueue< MessageDTO > &remoteQueue, ICircularQueue< MessageDTO > &buzzQueue, IBSP &bsp, ILogger &logger)
Definition: BittyBuzzMessageService.cpp:6
Definition: BittyBuzzMessageService.h:10
IBSP & m_bsp
Definition: BittyBuzzMessageService.h:40
ILogger & m_logger
Definition: BittyBuzzMessageService.h:41
A logger class with basic logging capabilities.
Definition: ILogger.h:35
bool flush()
Definition: BittyBuzzMessageService.cpp:105
bool callBuzzFunction(uint16_t agentId, const char *functionName, const FunctionCallArgumentDTO *args, uint16_t argsLength) override
call a function to a buzz vm
Definition: BittyBuzzMessageService.cpp:42
ICircularQueue< MessageDTO > & m_hostQueue
Definition: BittyBuzzMessageService.h:36
BuzzMessagesDTO m_messages
Definition: BittyBuzzMessageService.h:39
message service use by the BBVM. Constructs the messages and dispatches it at the appropriate place (...
Definition: IBittyBuzzMessageService.h:9
bool callHostFunction(uint16_t agentId, const char *functionName, const FunctionCallArgumentDTO *args, uint16_t argsLength) override
call a function to a host
Definition: BittyBuzzMessageService.cpp:17
std::optional< std::reference_wrapper< BuzzMessageDTO > > getNextMessage()
Definition: BittyBuzzMessageService.cpp:91
ICircularQueue< MessageDTO > & m_buzzQueue
Definition: BittyBuzzMessageService.h:38