Print the contents of the event to the given stream.
- Parameters
-
out | An ostream to which the output should be redirected. |
strip | defines whether a possible SERVER name in the event name should be stripped or not. |
Definition at line 214 of file EventImp.cc.
References fAllowedStates, Time::GetAsStr(), GetDescription(), GetFormat(), GetName(), GetSize(), GetTime(), i, if(), kBlue, kBold, kGreen, kReset, kYellow, Time::None, Description::SplitDescription(), str, and t.
Referenced by operator()(), and Print().
223 out <<
kBold << str.substr(strip?str.find_first_of(
'/')+1:0) <<
kReset <<
"-";
227 if (!str.empty() && !fmt.empty())
231 out <<
"[" << fmt <<
"]";
238 for (vector<Description>::const_iterator j=v.begin()+1;
240 out <<
" <" << j->name <<
">";
270 out <<
" " << v[0].comment << endl;
272 for (vector<Description>::const_iterator j=v.begin()+1;
275 out <<
" ||" <<
kGreen << j->name;
276 if (!j->comment.empty())
278 if (!j->unit.empty())
279 out <<
kYellow <<
" [" << j->unit <<
"]";
virtual std::string GetDescription() const
Adds some functionality to boost::posix_time::ptime for our needs.
std::vector< int > fAllowedStates
virtual Time GetTime() const
virtual std::string GetFormat() const
static std::vector< Description > SplitDescription(const std::string &buffer)
static const Time None
A none-time, this can be used as a simple representation of an invalid time.
virtual std::string GetName() const
std::string GetAsStr(const char *fmt="%Y-%m-%d %H:%M:%S") const
virtual size_t GetSize() const