IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
51f948f5
Commit
51f948f5
authored
3 years ago
by
Remy Prechelt
Browse files
Options
Downloads
Patches
Plain Diff
Add a DummyOutputManager for use in tests.
parent
cc750795
No related branches found
No related tags found
Loading
Pipeline
#3838
failed
3 years ago
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/output/DummyOutputManager.inl
+27
-0
27 additions, 0 deletions
corsika/detail/output/DummyOutputManager.inl
corsika/output/DummyOutputManager.hpp
+70
-0
70 additions, 0 deletions
corsika/output/DummyOutputManager.hpp
with
97 additions
and
0 deletions
corsika/detail/output/DummyOutputManager.inl
0 → 100644
+
27
−
0
View file @
51f948f5
/*
* (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
namespace
corsika
{
DummyOutputManager
::
DummyOutputManager
()
{}
DummyOutputManager
::~
DummyOutputManager
()
{}
template
<
typename
TOutput
>
void
DummyOutputManager
::
add
(
std
::
string
const
&
name
,
TOutput
&
output
)
{}
void
DummyOutputManager
::
startOfLibrary
()
{}
void
DummyOutputManager
::
startOfShower
()
{}
void
DummyOutputManager
::
endOfShower
()
{}
void
DummyOutputManager
::
endOfLibrary
()
{}
}
// namespace corsika
This diff is collapsed.
Click to expand it.
corsika/output/DummyOutputManager.hpp
0 → 100644
+
70
−
0
View file @
51f948f5
/*
* (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
namespace
corsika
{
/*!
* An output manager that does nothing.
*/
class
DummyOutputManager
final
{
public:
/**
* Construct an OutputManager instance with a name in a given directory.
*
* @param name The name of this output collection.
* @param dir The directory where the output directory will be stored.
*/
DummyOutputManager
();
/**
* Handle graceful closure of the outputs upon destruction.
*/
~
DummyOutputManager
();
/**
* Register an existing output to this manager.
*
* @param name The unique name of this output.
* @param args... These are perfect forwarded to the
* constructor of the output.
*/
template
<
typename
TOutput
>
void
add
(
std
::
string
const
&
name
,
TOutput
&
output
);
/**
* Called at the start of each library.
*
* This iteratively calls startOfLibrary on each registered output.
*/
void
startOfLibrary
();
/**
* Called at the start of each event/shower.
* This iteratively calls startOfEvent on each registered output.
*/
void
startOfShower
();
/**
* Called at the end of each event/shower.
* This iteratively calls endOfEvent on each registered output.
*/
void
endOfShower
();
/**
* Called at the end of each library.
* This iteratively calls endOfLibrary on each registered output.
*/
void
endOfLibrary
();
};
// class DummyOutputManager
}
// namespace corsika
#include
<corsika/detail/output/DummyOutputManager.inl>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment