CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
23 template<class T>
24 class Observer
25 {
26 public:
27  Observer() {}
28  virtual ~Observer() {}
29 
35  void slotForUpdate(T iT) {
36  update(iT);
37  }
38 protected:
40  virtual void update(T) = 0;
41 private:
42 };
43 
44 #endif
virtual ~Observer()
Definition: Observer.h:28
virtual void update(T)=0
This routine will be called when the appropriate signal arrives.
Observer()
Definition: Observer.h:27
void slotForUpdate(T iT)
Definition: Observer.h:35
long double T