Belle II Software  release-05-02-19
Observer.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2013 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Eugenio Paoloni *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 
13 
14 namespace Belle2 {
21  class Observer {
22  public:
24  template<class T, class someRangeType, class someHitType>
25  static void notify(T , double, someRangeType, const someHitType&, const someHitType&) {};
26 
28  explicit Observer() {};
29 
31  template <typename ... types>
32  static void initialize(const types& ...) {};
33 
35  template <typename ... types>
36  static void terminate(const types& ...) {};
37  };
39 }
Belle2::Observer::Observer
Observer()
An empty constructor for an empty class.
Definition: Observer.h:36
Belle2::Observer::initialize
static void initialize(const types &...)
static method used by the observed object to initialize the observer.
Definition: Observer.h:40
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Observer::terminate
static void terminate(const types &...)
static method used by the observed object to terminate the observer.
Definition: Observer.h:44
Belle2::Observer::notify
static void notify(T, double, someRangeType, const someHitType &, const someHitType &)
exemplary draft for a notify-function of an observer
Definition: Observer.h:33