X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1347f3d1e04bedd1508589173f577673ee2c5554..bc6cac0e474dfe2feb4983aef98f99e23a98ffc4:/include/stg/notifer.h?ds=sidebyside diff --git a/include/stg/notifer.h b/include/stg/notifer.h index 6f213328..339b6170 100644 --- a/include/stg/notifer.h +++ b/include/stg/notifer.h @@ -1,29 +1,17 @@ - /* - $Revision: 1.6 $ - $Date: 2007/12/03 09:00:17 $ - $Author: nobunaga $ - */ +#pragma once -#ifndef PROPERTY_NOTIFER_H -#define PROPERTY_NOTIFER_H - -//----------------------------------------------------------------------------- -template -class PROPERTY_NOTIFIER_BASE +namespace STG { -public: - virtual ~PROPERTY_NOTIFIER_BASE(){} - virtual void Notify(const varParamType & oldValue, const varParamType & newValue) = 0; -}; -//----------------------------------------------------------------------------- -template -class NOTIFIER_BASE + +template +struct NotifierBase { -public: - virtual ~NOTIFIER_BASE(){} - virtual void Notify(const varParamType & value) = 0; + virtual ~NotifierBase() = default; + + virtual void notify(const Ts&... values) = 0; }; -//----------------------------------------------------------------------------- -#endif //PROPERTY_NOTIFER_H +template +using PropertyNotifierBase = NotifierBase; +}