]> git.stg.codes - stg.git/blob - include/stg/notifer.h
Headers moved to subdir stg
[stg.git] / include / stg / notifer.h
1  /*
2  $Revision: 1.6 $
3  $Date: 2007/12/03 09:00:17 $
4  $Author: nobunaga $
5  */
6
7 #ifndef PROPERTY_NOTIFER_H
8 #define PROPERTY_NOTIFER_H
9
10 //-----------------------------------------------------------------------------
11 template <typename varParamType>
12 class PROPERTY_NOTIFIER_BASE
13 {
14 public:
15     virtual      ~PROPERTY_NOTIFIER_BASE(){};
16     virtual void Notify(const varParamType & oldValue, const varParamType & newValue) = 0;
17 };
18 //-----------------------------------------------------------------------------
19 template <typename varParamType>
20 class NOTIFIER_BASE
21 {
22 public:
23     virtual      ~NOTIFIER_BASE(){};
24     virtual void Notify(const varParamType & value) = 0;
25 };
26 //-----------------------------------------------------------------------------
27 #endif //PROPERTY_NOTIFER_H
28
29