blob: f18a58d2e103db76bf86109e91d3654cc1675bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
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;
};
|