X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e5499c61083684b28bcbc6950aae66cbf0938703..e9ae1f101b5418c0ba2e6c9d86b23c12f0140982:/include/stg/notifer.h diff --git a/include/stg/notifer.h b/include/stg/notifer.h index 6f213328..367c5ced 100644 --- a/include/stg/notifer.h +++ b/include/stg/notifer.h @@ -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 -class PROPERTY_NOTIFIER_BASE +template +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 -class NOTIFIER_BASE + +template +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; +}; +}