#include <BittyBuzzMessageService.h>
|
| | BittyBuzzMessageService (ICircularQueue< MessageDTO > &hostQueue, ICircularQueue< MessageDTO > &remoteQueue, ICircularQueue< MessageDTO > &buzzQueue, IBSP &bsp, ILogger &logger) |
| |
| | ~BittyBuzzMessageService () override=default |
| |
| bool | callHostFunction (uint16_t agentId, const char *functionName, const FunctionCallArgumentDTO *args, uint16_t argsLength) override |
| | call a function to a host More...
|
| |
| bool | callBuzzFunction (uint16_t agentId, const char *functionName, const FunctionCallArgumentDTO *args, uint16_t argsLength) override |
| | call a function to a buzz vm More...
|
| |
| bool | queueBuzzMessages () override |
| | queues the buzz messages More...
|
| |
| virtual | ~IBittyBuzzMessageService ()=default |
| |
◆ BittyBuzzMessageService()
| BittyBuzzMessageService::BittyBuzzMessageService |
( |
ICircularQueue< MessageDTO > & |
hostQueue, |
|
|
ICircularQueue< MessageDTO > & |
remoteQueue, |
|
|
ICircularQueue< MessageDTO > & |
buzzQueue, |
|
|
IBSP & |
bsp, |
|
|
ILogger & |
logger |
|
) |
| |
◆ ~BittyBuzzMessageService()
| BittyBuzzMessageService::~BittyBuzzMessageService |
( |
| ) |
|
|
overridedefault |
◆ callBuzzFunction()
| bool BittyBuzzMessageService::callBuzzFunction |
( |
uint16_t |
agentId, |
|
|
const char * |
functionName, |
|
|
const FunctionCallArgumentDTO * |
args, |
|
|
uint16_t |
argsLength |
|
) |
| |
|
overridevirtual |
call a function to a buzz vm
- Parameters
-
| [in] | agentId | the id of the agent, use 0 for broadcast |
| [in] | functionName | the name of the function to call |
| [in] | args | a list of arguments to pass to the function |
| [in] | argsLength | the number of arguments to pass, the max is FunctionCallRequestDTO::FUNCTION_CALL_ARGUMENTS_MAX_LENGTH |
Implements IBittyBuzzMessageService.
◆ callHostFunction()
| bool BittyBuzzMessageService::callHostFunction |
( |
uint16_t |
agentId, |
|
|
const char * |
functionName, |
|
|
const FunctionCallArgumentDTO * |
args, |
|
|
uint16_t |
argsLength |
|
) |
| |
|
overridevirtual |
call a function to a host
- Parameters
-
| [in] | agentId | the id of the agent, use 0 for broadcast |
| [in] | functionName | the name of the function to call |
| [in] | args | a list of arguments to pass to the function |
| [in] | argsLength | the number of arguments to pass, the max is FunctionCallRequestDTO::FUNCTION_CALL_ARGUMENTS_MAX_LENGTH |
Implements IBittyBuzzMessageService.
◆ flush()
| bool BittyBuzzMessageService::flush |
( |
| ) |
|
|
private |
◆ getNextMessage()
| std::optional< std::reference_wrapper< BuzzMessageDTO > > BittyBuzzMessageService::getNextMessage |
( |
| ) |
|
|
private |
◆ queueBuzzMessages()
| bool BittyBuzzMessageService::queueBuzzMessages |
( |
| ) |
|
|
overridevirtual |
queues the buzz messages
- Returns
- true if the operation was successfull, false if not (length too big or queue is full)
Implements IBittyBuzzMessageService.
◆ m_bsp
| IBSP& BittyBuzzMessageService::m_bsp |
|
private |
◆ m_buzzQueue
| ICircularQueue<MessageDTO>& BittyBuzzMessageService::m_buzzQueue |
|
private |
◆ m_hostQueue
| ICircularQueue<MessageDTO>& BittyBuzzMessageService::m_hostQueue |
|
private |
◆ m_logger
| ILogger& BittyBuzzMessageService::m_logger |
|
private |
◆ m_messages
| BuzzMessagesDTO BittyBuzzMessageService::m_messages |
|
private |
◆ m_remoteQueue
| ICircularQueue<MessageDTO>& BittyBuzzMessageService::m_remoteQueue |
|
private |
The documentation for this class was generated from the following files: