IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Pranav Sampathkumar
corsika
Commits
8f2c8bc2
Commit
8f2c8bc2
authored
3 years ago
by
Remy Prechelt
Committed by
ralfulrich
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move getConfig to its own class in the heirarchy.
parent
57fe7090
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/output/BaseOutput.hpp
+2
-6
2 additions, 6 deletions
corsika/output/BaseOutput.hpp
corsika/output/Configurable.hpp
+34
-0
34 additions, 0 deletions
corsika/output/Configurable.hpp
with
36 additions
and
6 deletions
corsika/output/BaseOutput.hpp
+
2
−
6
View file @
8f2c8bc2
...
...
@@ -8,6 +8,7 @@
#pragma once
#include
<corsika/framework/core/Logging.hpp>
#include
<corsika/output/Configurable.hpp>
#include
<boost/filesystem.hpp>
#include
<yaml-cpp/yaml.h>
...
...
@@ -17,7 +18,7 @@ namespace corsika {
* This is the base class for all outputs so that they
* can be stored in homogeneous containers.
*/
class
BaseOutput
{
class
BaseOutput
:
public
Configurable
{
protected:
BaseOutput
()
=
default
;
...
...
@@ -63,11 +64,6 @@ namespace corsika {
*/
virtual
YAML
::
Node
getSummary
()
const
{
return
YAML
::
Node
();
}
/**
* Provide YAML configuration for this BaseOutput.
*/
virtual
YAML
::
Node
getConfig
()
const
=
0
;
protected
:
/**
* Set init flag.
...
...
This diff is collapsed.
Click to expand it.
corsika/output/Configurable.hpp
0 → 100644
+
34
−
0
View file @
8f2c8bc2
/*
* (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
#include
<corsika/framework/core/Logging.hpp>
#include
<corsika/output/Configurable.hpp>
#include
<boost/filesystem.hpp>
#include
<yaml-cpp/yaml.h>
namespace
corsika
{
/**
* This is the base class for all classes that have
* YAML representations of their configurations.
*/
class
Configurable
{
protected:
Configurable
()
=
default
;
virtual
~
Configurable
()
=
default
;
public:
/**
* Provide YAML configuration for this BaseOutput.
*/
virtual
YAML
::
Node
getConfig
()
const
=
0
;
};
}
// namespace corsika
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