]> git.stg.codes - stg.git/blobdiff - include/stg/notifer.h
Public interfaces: part 1
[stg.git] / include / stg / notifer.h
index 57f9928e1aa7989cfbb2cbc417570fbb1372de57..367c5ced998a111618d7d7aa9259905a8057be01 100644 (file)
@@ -1,29 +1,22 @@
- /*
- $Revision: 1.6 $
- $Date: 2007/12/03 09:00:17 $
- $Author: nobunaga $
- */
+#pragma once
 
-#ifndef PROPERTY_NOTIFER_H
-#define PROPERTY_NOTIFER_H
+namespace STG
+{
 
-//-----------------------------------------------------------------------------
-template <typename varParamType>
-class PROPERTY_NOTIFIER_BASE
+template <typename T>
+struct PropertyNotifierBase
 {
-public:
-    virtual      ~PROPERTY_NOTIFIER_BASE(){};
-    virtual void Notify(const varParamType & oldValue, const varParamType & newValue) = 0;
+    virtual ~PropertyNotifierBase() = default;
+
+    virtual void Notify(const T& oldValue, const T& newValue) = 0;
 };
-//-----------------------------------------------------------------------------
-template <typename varParamType>
-class NOTIFIER_BASE
+
+template <typename T>
+struct NotifierBase
 {
-public:
-    virtual      ~NOTIFIER_BASE(){};
-    virtual void Notify(const varParamType & value) = 0;
-};
-//-----------------------------------------------------------------------------
-#endif //PROPERTY_NOTIFER_H
+    virtual ~NotifierBase() = default;
 
+    virtual void Notify(const T& value) = 0;
+};
 
+}