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 // $Id: Observer.h,v 1.8 2007/12/02 05:17:47 chrjones Exp $
21 //
22 
23 
24 template<class T>
25 class Observer
26 {
27 public:
28  Observer() {}
29  virtual ~Observer() {}
30 
36  void slotForUpdate(T iT) {
37  update(iT);
38  }
39 protected:
41  virtual void update(T) = 0;
42 private:
43 };
44 
45 #endif
virtual ~Observer()
Definition: Observer.h:29
virtual void update(T)=0
This routine will be called when the appropriate signal arrives.
Observer()
Definition: Observer.h:28
void slotForUpdate(T iT)
Definition: Observer.h:36
long double T