CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
DummyOutputManager.hpp
1 /*
2  * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
3  *
4  * This software is distributed under the terms of the GNU General Public
5  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
6  * the license.
7  */
8 #pragma once
9 
10 namespace corsika {
11 
16 
17  public:
25 
30 
38  template <typename TOutput>
39  void add(std::string const& name, TOutput& output);
40 
46  void startOfLibrary();
47 
52  void startOfShower();
53 
58  void endOfShower();
59 
64  void endOfLibrary();
65 
66  }; // class DummyOutputManager
67 
68 } // namespace corsika
69 
70 #include <corsika/detail/output/DummyOutputManager.inl>
void startOfLibrary()
Called at the start of each library.
void endOfShower()
Called at the end of each event/shower.
DummyOutputManager()
Construct an OutputManager instance with a name in a given directory.
void add(std::string const &name, TOutput &output)
Register an existing output to this manager.
`, since they are used everywhere as integral part of the framework.
void startOfShower()
Called at the start of each event/shower.
~DummyOutputManager()
Handle graceful closure of the outputs upon destruction.
void endOfLibrary()
Called at the end of each library.