Changeset 17341
- Timestamp:
- 11/21/13 17:43:34 (11 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/MessageImp.cc
r15080 r17341 106 106 //! The severity of the message 107 107 // 108 int MessageImp::Write (const Time &time, const string &txt, int severity)108 int MessageImp::WriteImp(const Time &time, const string &txt, int severity) 109 109 { 110 110 if (severity==kAlarm && txt.length()==0) … … 128 128 fOut << time.GetAsStr("%H:%M:%S.%f") << " - " << txt << endl; 129 129 130 return 0; 131 } 132 133 int MessageImp::Write(const Time &time, const string &txt, int severity) 134 { 135 const uint32_t mjd = time.Mjd(); 136 137 if (fLastMjd != mjd) 138 WriteImp(time, "=================== "+time.GetAsStr("%Y-%m-%d")+" ["+to_string(mjd)+"] =================="); 139 140 fLastMjd = mjd; 141 142 WriteImp(time, txt, severity); 130 143 return 0; 131 144 } -
trunk/FACT++/src/MessageImp.h
r16737 r17341 26 26 private: 27 27 std::ostream &fOut; /// The ostream to which by default Write redirects its output 28 uint32_t fLastMjd; /// Mjd of last message 29 30 int WriteImp(const Time &time, const std::string &txt, int qos=kMessage); 28 31 29 32 public:
Note:
See TracChangeset
for help on using the changeset viewer.