-
Notifications
You must be signed in to change notification settings - Fork 1
/
Colleague.h
26 lines (25 loc) · 852 Bytes
/
Colleague.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef Colleague_H
#define Colleague_H
#include "OrderMediator.h"
// class OrderMediator;
class Colleague
/**
* @brief The Colleague class is an abstract base class that defines the interface for objects that
* communicate with each other through a mediator.
*
* @details The Colleague class has a pointer to an OrderMediator object, which is used to communicate
* with other Colleague objects. It provides methods to set and get the mediator object.
* This class is meant to be subclassed to create concrete Colleague objects that can communicate
* with each other through the mediator.
*
* @see OrderMediator
*/
{
protected:
OrderMediator* mediator;
public:
void setMediator(OrderMediator* mediator);
OrderMediator* getMediator();
virtual ~Colleague();
};
#endif