CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
YAMLStreamer.hpp
1 
2 /*
3  * (c) Copyright 2021 CORSIKA Project, corsika-project@lists.kit.edu
4  *
5  * This software is distributed under the terms of the GNU General Public
6  * Licence version 3 (GPL Version 3). See file LICENSE for a full version of
7  * the license.
8  */
9 
10 #pragma once
11 
12 #include <boost/filesystem.hpp>
13 #include <yaml-cpp/yaml.h>
14 #include <string>
15 
16 namespace corsika {
17 
22  class YAMLStreamer {
23  public:
24  inline void writeYAML(YAML::Node const& node,
25  boost::filesystem::path const& path) const;
26 
27  }; // class YAMLStreamer
28 } // namespace corsika
29 
30 #include <corsika/detail/output/YAMLStreamer.inl>
This class automates the construction of simple tabular YAML files using the YAML::StreamWriter.
`, since they are used everywhere as integral part of the framework.