CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Observer.h
Go to the documentation of this file.
1 #ifndef SimG4Core_Notification_Observer_H
2 #define SimG4Core_Notification_Observer_H
3 // -*- C++ -*-
4 //
5 // Package: Notification
6 // Class : Observer
7 //
19 //
20 //
21 
22 template <class T>
23 class Observer {
24 public:
25  Observer() {}
26  virtual ~Observer() {}
27 
33  void slotForUpdate(T iT) { update(iT); }
34 
35 protected:
37  virtual void update(T) = 0;
38 
39 private:
40 };
41 
42 #endif
virtual ~Observer()
Definition: Observer.h:26
virtual void update(T)=0
This routine will be called when the appropriate signal arrives.
Observer()
Definition: Observer.h:25
void slotForUpdate(T iT)
Definition: Observer.h:33
long double T