blob: 9f93ea91f12878e3f0a10abe8374a38dc2bc284d (
plain)
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
27
28
29
30
|
#ifndef guard_general_observer_observer_observer_h
#define guard_general_observer_observer_observer_h
//==============================================================================
// General Code, © 2002 Ryan Winter
//==============================================================================
class Subject;
class Observer
{
public:
virtual ~Observer();
//--------------------------------------------------------------------------
// Description : Called by a subject that this observer is observing
// to signify a change in state
// Parameters : subject - the subject that changed
//--------------------------------------------------------------------------
virtual void update(Subject &subject) = 0;
};
//==============================================================================
//
// Summary : Observer side of the observer pattern
//
// Description :
//
//==============================================================================
#endif
|