OStream.cxx
Go to the documentation of this file.
3 #include <iostream>
4 using namespace om;
5 
8 
9 //......................................................................
10 
11 OStream::OStream() : fLogViewer(0) { }
12 
13 //......................................................................
14 
16 {
17  if (fLogViewer) {
19  }
20  else {
21  std::cout << fBuf.str() << std::endl;
22  }
23  fBuf.clear();
24 }
25 
26 //......................................................................
27 
29 {
30  fLogViewer = lv;
31 }
32 
33 ////////////////////////////////////////////////////////////////////////
void SetLogViewer(om::LogViewer *lv)
Definition: OStream.cxx:28
OStream cerr
Definition: OStream.cxx:7
std::ostringstream fBuf
Definition: OStream.h:17
om::LogViewer * fLogViewer
Definition: OStream.h:18
OStream cout
Definition: OStream.cxx:6
void PrintToScreen(const std::string &s)
Definition: LogViewer.cxx:17
void Flush()
Definition: OStream.cxx:15
Online Monitoring package header.