Belle II Software prerelease-10-00-00a
VoidObserver.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11
12namespace Belle2 {
17
29
31 public:
32
36 template < typename ... types >
37 static void notify(const types& ...) {};
38
42 template < typename ... types >
43 static bool initialize(const types& ...) { return true; };
44
48 template < typename ... types >
49 static void prepare(const types& ...) {};
50
54 template < typename ... types >
55 static void collect(const types& ...) {};
56
57
60
63
64
66 template < typename ... types >
67 static void terminate(const types& ...) {};
68 };
69
70}
~VoidObserver()
An empty destructor for an empty class.
static void terminate(const types &...)
static method used by the observed object to terminate the observer.
static void prepare(const types &...)
static method used by the observed object to prepare the observer it is called by the boolean filter ...
VoidObserver()
An empty constructor for an empty class.
static bool initialize(const types &...)
static method used by the observed object to initialize the observer it is called once usually from t...
static void notify(const types &...)
static method used by the observed object to notify the observer.
static void collect(const types &...)
static method used by the observed object to prepare the observer it is called by the boolean filter ...
Abstract base class for different kinds of events.