Line data Source code
1 : /** \file saving_stop.hpp
2 : * \brief The MagAO-X logger saving_stop log type.
3 : * \author Jared R. Males (jaredmales@gmail.com)
4 : *
5 : * \ingroup logger_types_files
6 : *
7 : * History:
8 : * - 2019-05-04 created by JRM
9 : */
10 : #ifndef logger_types_saving_stop_hpp
11 : #define logger_types_saving_stop_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_stop : public saving_state_change
24 : {
25 : ///The event code
26 : static const flatlogs::eventCodeT eventCode = eventCodes::SAVING_STOP;
27 :
28 : ///The default level
29 : static const flatlogs::logPrioT defaultLevel = flatlogs::logPrio::LOG_NOTICE;
30 :
31 : static timespec lastRecord; ///< The time of the last time this log was recorded. Used by the telemetry system.
32 :
33 : /// Get an empty logMetaDetail because meta data doesn't make sense for this log
34 : /**
35 : * \returns an empty logMetaDetail
36 : */
37 1 : static logMetaDetail getAccessor( const std::string & member /**< [in] the name of the member */ )
38 : {
39 : static_cast<void>(member);
40 :
41 1 : std::cerr << "meta data doesn't make sense for saving_stop.\n";
42 1 : return logMetaDetail();
43 : }
44 : };
45 :
46 :
47 :
48 : } //namespace logger
49 : } //namespace MagAOX
50 :
51 : #endif //logger_types_saving_stop_hpp
|