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

#include <MessageSender.h>

Inheritance diagram for MessageSender:
Inheritance graph
Collaboration diagram for MessageSender:
Collaboration graph

Public Member Functions

 MessageSender (ICircularQueue< MessageDTO > &inputQueue, IHiveMindHostSerializer &serializer, IBSP &bsp, ILogger &logger)
 
 ~MessageSender () override=default
 
bool processAndSerialize () override
 process an item in the queue, serializes it and sends it to the deserializer More...
 
- Public Member Functions inherited from IMessageSender
virtual ~IMessageSender ()=default
 

Private Attributes

ICircularQueue< MessageDTO > & m_inputQueue
 
IHiveMindHostSerializer & m_serializer
 
IBSPm_bsp
 
ILoggerm_logger
 

Constructor & Destructor Documentation

◆ MessageSender()

MessageSender::MessageSender ( ICircularQueue< MessageDTO > &  inputQueue,
IHiveMindHostSerializer &  serializer,
IBSP bsp,
ILogger logger 
)

◆ ~MessageSender()

MessageSender::~MessageSender ( )
overridedefault

Member Function Documentation

◆ processAndSerialize()

bool MessageSender::processAndSerialize ( )
overridevirtual

process an item in the queue, serializes it and sends it to the deserializer

Returns
true if the operation was successful, false if not

Implements IMessageSender.

Here is the caller graph for this function:

Member Data Documentation

◆ m_bsp

IBSP& MessageSender::m_bsp
private

◆ m_inputQueue

ICircularQueue<MessageDTO>& MessageSender::m_inputQueue
private

◆ m_logger

ILogger& MessageSender::m_logger
private

◆ m_serializer

IHiveMindHostSerializer& MessageSender::m_serializer
private

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