HiveMind
src
message-handler
include
message-handler
GreetSender.h
Go to the documentation of this file.
1
#ifndef __GREETSENDER_H_
2
#define __GREETSENDER_H_
3
4
#include "
IGreetSender.h
"
5
#include "pheromones/MessageDTO.h"
6
#include <
bsp/IBSP.h
>
7
#include <cpp-common/ICircularQueue.h>
8
9
class
GreetSender
:
public
IGreetSender
{
10
public
:
11
GreetSender
(ICircularQueue<MessageDTO>& outputQueue,
IBSP
& bsp);
12
13
~GreetSender
()
override
=
default
;
14
15
bool
sendGreet
()
override
;
16
17
private
:
18
ICircularQueue<MessageDTO>&
m_outputQueue
;
19
IBSP
&
m_bsp
;
20
};
21
22
#endif // __GREETSENDER_H_
IGreetSender.h
IBSP.h
GreetSender::~GreetSender
~GreetSender() override=default
IBSP
Definition:
IBSP.h:6
GreetSender::GreetSender
GreetSender(ICircularQueue< MessageDTO > &outputQueue, IBSP &bsp)
Definition:
GreetSender.cpp:3
GreetSender
Definition:
GreetSender.h:9
GreetSender::sendGreet
bool sendGreet() override
send a greet to the output queue
Definition:
GreetSender.cpp:6
GreetSender::m_outputQueue
ICircularQueue< MessageDTO > & m_outputQueue
Definition:
GreetSender.h:18
IGreetSender
Definition:
IGreetSender.h:4
GreetSender::m_bsp
IBSP & m_bsp
Definition:
GreetSender.h:19
Generated by
1.8.17