ROOT 6.18/05 Reference Guide |
Hijacks all messages with given level and topic (and optionally object name) while alive.
Use like ostringstream afterwards. Useful for unit tests and debugging.
Definition at line 53 of file RooHelpers.h.
Public Member Functions | |
HijackMessageStream (RooFit::MsgLevel level, RooFit::MsgTopic topics, const char *objectName=nullptr) | |
virtual | ~HijackMessageStream () |
Private Attributes | |
std::vector< RooMsgService::StreamConfig > | _oldConf |
RooFit::MsgLevel | _oldKillBelow |
Int_t | _thisStream |
#include <RooHelpers.h>
RooHelpers::HijackMessageStream::HijackMessageStream | ( | RooFit::MsgLevel | level, |
RooFit::MsgTopic | topics, | ||
const char * | objectName = nullptr |
||
) |
Definition at line 40 of file RooHelpers.cxx.
|
virtual |
Definition at line 58 of file RooHelpers.cxx.
|
private |
Definition at line 61 of file RooHelpers.h.
|
private |
Definition at line 60 of file RooHelpers.h.
|
private |
Definition at line 62 of file RooHelpers.h.