Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
N21-04-15
OnlineMonitoring
viewer
OStream.cxx
Go to the documentation of this file.
1
#include "
OnlineMonitoring/viewer/OStream.h
"
2
#include "
OnlineMonitoring/viewer/LogViewer.h
"
3
#include <iostream>
4
using namespace
om
;
5
6
OStream
om::cout
;
7
OStream
om::cerr
;
8
9
//......................................................................
10
11
OStream::OStream
() : fLogViewer(0) { }
12
13
//......................................................................
14
15
void
OStream::Flush
()
16
{
17
if
(
fLogViewer
) {
18
fLogViewer
->
PrintToScreen
(
fBuf
.str());
19
}
20
else
{
21
std::cout
<<
fBuf
.str() <<
std::endl
;
22
}
23
fBuf
.clear();
24
}
25
26
//......................................................................
27
28
void
OStream::SetLogViewer
(
om::LogViewer
* lv)
29
{
30
fLogViewer
= lv;
31
}
32
33
////////////////////////////////////////////////////////////////////////
om::OStream::OStream
OStream()
Definition:
OStream.cxx:11
om::OStream
Definition:
OStream.h:10
om::OStream::SetLogViewer
void SetLogViewer(om::LogViewer *lv)
Definition:
OStream.cxx:28
LogViewer.h
om::cerr
OStream cerr
Definition:
OStream.cxx:7
OStream.h
om::OStream::fBuf
std::ostringstream fBuf
Definition:
OStream.h:17
om::LogViewer
Definition:
LogViewer.h:7
om::OStream::fLogViewer
om::LogViewer * fLogViewer
Definition:
OStream.h:18
om::cout
OStream cout
Definition:
OStream.cxx:6
allTimeWatchdog.endl
string endl
Definition:
allTimeWatchdog.py:25
om::LogViewer::PrintToScreen
void PrintToScreen(const std::string &s)
Definition:
LogViewer.cxx:17
om::OStream::Flush
void Flush()
Definition:
OStream.cxx:15
om
Online Monitoring package header.
Definition:
FEBRateAnalysis.h:14
Generated on Thu Apr 15 2021 14:10:28 for NOvA by
1.8.11