SpECTRE Documentation Coverage Report
Current view: top level - IO/Logging - Tags.hpp Hit Total Coverage
Commit: 3f09028930c0450a2fb61ee918b22882f5d03d2b Lines: 2 14 14.3 %
Date: 2021-10-22 20:52:16
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #pragma once
       5             : 
       6             : #include <string>
       7             : 
       8             : #include "DataStructures/DataBox/Tag.hpp"
       9             : #include "Options/Options.hpp"
      10             : 
      11             : /// \cond
      12             : enum class Verbosity;
      13             : /// \endcond
      14             : 
      15             : /// \ingroup LoggingGroup
      16             : /// Items related to logging
      17           1 : namespace logging {
      18           0 : namespace OptionTags {
      19             : /// \ingroup OptionTagsGroup
      20             : /// \ingroup LoggingGroup
      21             : template <typename OptionsGroup>
      22           0 : struct Verbosity {
      23           0 :   using type = ::Verbosity;
      24           0 :   static constexpr Options::String help{"Verbosity"};
      25           0 :   using group = OptionsGroup;
      26             : };
      27             : }  // namespace OptionTags
      28             : 
      29           0 : namespace Tags {
      30             : /// \ingroup LoggingGroup
      31             : /// \brief Tag for putting `::Verbosity` in a DataBox.
      32             : template <typename OptionsGroup>
      33           1 : struct Verbosity : db::SimpleTag {
      34           0 :   using type = ::Verbosity;
      35           0 :   static std::string name() {
      36             :     return "Verbosity(" + Options::name<OptionsGroup>() + ")";
      37             :   }
      38             : 
      39           0 :   using option_tags = tmpl::list<OptionTags::Verbosity<OptionsGroup>>;
      40           0 :   static constexpr bool pass_metavariables = false;
      41           0 :   static ::Verbosity create_from_options(const ::Verbosity& verbosity) {
      42             :     return verbosity;
      43             :   }
      44             : };
      45             : }  // namespace Tags
      46             : }  // namespace logging

Generated by: LCOV version 1.14