00001 /* 00002 * OptionListener.h 00003 * 00004 * Created on: Oct 11, 2011 00005 * Author: mriedel 00006 */ 00007 00008 #ifndef OPTIONLISTENER_HPP_ 00009 #define OPTIONLISTENER_HPP_ 00010 00011 #include <telekyb_defines/telekyb_defines.hpp> 00012 00013 // stl 00014 #include <set> 00015 00016 namespace TELEKYB_NAMESPACE 00017 { 00018 00019 template <class T> 00020 class Option; 00021 00022 template <class T> 00023 class OptionListener 00024 { 00025 public: 00026 virtual ~OptionListener() {}; 00027 00028 //virtual void optionDidCreate(const Option<T>* option_) {}; 00029 00030 virtual void optionDidChange(const Option<T>* option_) {}; 00031 00032 virtual void optionShouldDelete(const Option<T>* option_) {}; 00033 }; 00034 00035 //template <class T> 00036 //std::set<OptionListener<T>*> OptionListener<T>::globalListenerSet; 00037 00038 } // namespace 00039 00040 #endif /* OPTIONLISTENER_H_ */