blob: ec52b2c4d37b5c677a2e0af60f59ac7e61a128e1 (
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;
};
|