LCOV - code coverage report
Current view: top level - libMagAOX/logger/types - saving_start.hpp (source / functions) Coverage Total Hit
Test: MagAOX Lines: 100.0 % 3 3
Test Date: 2026-01-03 21:03:39 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /** \file saving_start.hpp
       2              :   * \brief The MagAO-X logger saving_start log type.
       3              :   * \author Jared R. Males (jaredmales@gmail.com)
       4              :   *
       5              :   * \ingroup logger_types_files
       6              :   *
       7              :   * History:
       8              :   * - 2018-08-18 created by JRM
       9              :   */
      10              : #ifndef logger_types_saving_start_hpp
      11              : #define logger_types_saving_start_hpp
      12              : 
      13              : #include "saving_state_change.hpp"
      14              : 
      15              : namespace MagAOX
      16              : {
      17              : namespace logger
      18              : {
      19              : 
      20              : ///Saving started log
      21              : /** \ingroup logger_types
      22              :   */
      23              : struct saving_start : public saving_state_change
      24              : {
      25              :    ///The event code
      26              :    static const flatlogs::eventCodeT eventCode = eventCodes::SAVING_START;
      27              : 
      28              :    ///The default level
      29              :    static const flatlogs::logPrioT defaultLevel = flatlogs::logPrio::LOG_NOTICE;
      30              : 
      31              :    /// Get an empty logMetaDetail because meta data doesn't make sense for this log
      32              :    /**
      33              :      * \returns an empty logMetaDetail
      34              :      */
      35            1 :    static logMetaDetail getAccessor( const std::string & member /**< [in] the name of the member */ )
      36              :    {
      37              :       static_cast<void>(member);
      38              : 
      39            1 :       std::cerr << "meta data doesn't make sense for saving_start.\n";
      40            1 :       return logMetaDetail();
      41              :    }
      42              : 
      43              : };
      44              : 
      45              : 
      46              : 
      47              : } //namespace logger
      48              : } //namespace MagAOX
      49              : 
      50              : #endif //logger_types_saving_start_hpp
        

Generated by: LCOV version 2.0-1