LCOV - code coverage report
Current view: top level - libMagAOX/logger/types - telem_tcsi_focus.hpp (source / functions) Coverage Total Hit
Test: MagAOX Lines: 0.0 % 2 0
Test Date: 2026-04-15 19:34:29 Functions: 0.0 % 1 0

            Line data    Source code
       1              : /** \file telem_tcsi_focus.hpp
       2              :  * \brief The MagAO-X logger telem_tcsi_focus log type.
       3              :  * \author Jared R. Males (jaredmales@gmail.com)
       4              :  *
       5              :  * \ingroup logger_types_files
       6              :  *
       7              :  */
       8              : #ifndef logger_types_telem_tcsi_focus_hpp
       9              : #define logger_types_telem_tcsi_focus_hpp
      10              : 
      11              : #include "telem_tcsi_offload.hpp"
      12              : 
      13              : namespace MagAOX
      14              : {
      15              : namespace logger
      16              : {
      17              : 
      18              : /// Focus offload-control telemetry.
      19              : /** \ingroup logger_types
      20              :  */
      21              : struct telem_tcsi_focus : public telem_tcsi_offload
      22              : {
      23              :     /// The event code
      24              :     static const flatlogs::eventCodeT eventCode = eventCodes::TELEM_TCSI_FOCUS;
      25              : 
      26              :     /// The default level
      27              :     static const flatlogs::logPrioT defaultLevel = flatlogs::logPrio::LOG_TELEM;
      28              : 
      29              :     /// Format the message for human consumption.
      30            0 :     static std::string msgString( void *msgBuffer,      /**< [in] Buffer containing the flatbuffer serialized message.*/
      31              :                                   flatlogs::msgLenT len /**< [in] [unused] length of msgBuffer.*/
      32              :     )
      33              :     {
      34            0 :         return formatMsgString( "tcsi_focus", msgBuffer, len );
      35              :     }
      36              : 
      37              :     static timespec lastRecord; ///< The time of the last time this log was recorded. Used by the telemetry system.
      38              : };
      39              : 
      40              : } // namespace logger
      41              : } // namespace MagAOX
      42              : 
      43              : #endif // logger_types_telem_tcsi_focus_hpp
        

Generated by: LCOV version 2.0-1