Walker test code coverage report
Current view: top level - IO - TxtStatWriter.hpp (source / functions) Hit Total Coverage
Commit: test_coverage.info Lines: 1 1 100.0 %
Date: 2022-09-21 13:52:12 Functions: 0 0 -
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // *****************************************************************************
       2                 :            : /*!
       3                 :            :   \file      src/IO/TxtStatWriter.hpp
       4                 :            :   \copyright 2012-2015 J. Bakosi,
       5                 :            :              2016-2018 Los Alamos National Security, LLC.,
       6                 :            :              2019-2021 Triad National Security, LLC.
       7                 :            :              All rights reserved. See the LICENSE file for details.
       8                 :            :   \brief     Text statistics writer declaration
       9                 :            :   \details   This file declares the ASCII statistics writer class that
      10                 :            :      facilitates outputing statistics to text files.
      11                 :            : */
      12                 :            : // *****************************************************************************
      13                 :            : #ifndef TxtStatWriter_h
      14                 :            : #define TxtStatWriter_h
      15                 :            : 
      16                 :            : #include <string>
      17                 :            : #include <vector>
      18                 :            : #include <fstream>
      19                 :            : 
      20                 :            : #include "Types.hpp"
      21                 :            : #include "Writer.hpp"
      22                 :            : #include "Keywords.hpp"
      23                 :            : #include "Options/TxtFloatFormat.hpp"
      24                 :            : 
      25                 :            : namespace tk {
      26                 :            : 
      27                 :            : //! \brief TxtStatWriter : tk::Writer
      28                 :            : //! \details ASCII statistics writer class that facilitates outputing
      29                 :            : //!   statistics to text files.
      30                 :     398632 : class TxtStatWriter : public tk::Writer {
      31                 :            : 
      32                 :            :   public:
      33                 :            :     //! Constructor
      34                 :            :     explicit TxtStatWriter(
      35                 :            :       const std::string& filename,
      36                 :            :       tk::ctr::TxtFloatFormatType format = tk::ctr::TxtFloatFormatType::DEFAULT,
      37                 :            :       kw::precision::info::expect::type precision = std::cout.precision(),
      38                 :            :       std::ios_base::openmode mode = std::ios_base::out );
      39                 :            : 
      40                 :            :     //! Write out statistics file header
      41                 :            :     void header( const std::vector< std::string >& nameOrd,
      42                 :            :                  const std::vector< std::string >& nameCen,
      43                 :            :                  const std::vector< std::string >& nameExt ) const;
      44                 :            : 
      45                 :            :     //! Write statistics file
      46                 :            :     std::size_t stat( uint64_t it,
      47                 :            :                       tk::real t,
      48                 :            :                       const std::vector< tk::real >& ordinary,
      49                 :            :                       const std::vector< tk::real >& central,
      50                 :            :                       const std::vector< tk::real >& extra );
      51                 :            : 
      52                 :            :   private:
      53                 :            :     int m_precision;    //!< Floating-point precision in digits
      54                 :            :     int m_width;        //!< Floating-point number width
      55                 :            : };
      56                 :            : 
      57                 :            : } // tk::
      58                 :            : 
      59                 :            : #endif // TxtStatWriter_h

Generated by: LCOV version 1.14