Logo ROOT  
Reference Guide
RooHelpers::HijackMessageStream Class Reference

Hijacks all messages with given level and topic (and optionally object name) while alive.

Use this like an ostringstream afterwards. Useful for unit tests and debugging.

Definition at line 59 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>

Inheritance diagram for RooHelpers::HijackMessageStream:
[legend]

Constructor & Destructor Documentation

◆ HijackMessageStream()

RooHelpers::HijackMessageStream::HijackMessageStream ( RooFit::MsgLevel  level,
RooFit::MsgTopic  topics,
const char *  objectName = nullptr 
)

Definition at line 41 of file RooHelpers.cxx.

◆ ~HijackMessageStream()

RooHelpers::HijackMessageStream::~HijackMessageStream ( )
virtual

Definition at line 59 of file RooHelpers.cxx.

Member Data Documentation

◆ _oldConf

std::vector<RooMsgService::StreamConfig> RooHelpers::HijackMessageStream::_oldConf
private

Definition at line 67 of file RooHelpers.h.

◆ _oldKillBelow

RooFit::MsgLevel RooHelpers::HijackMessageStream::_oldKillBelow
private

Definition at line 66 of file RooHelpers.h.

◆ _thisStream

Int_t RooHelpers::HijackMessageStream::_thisStream
private

Definition at line 68 of file RooHelpers.h.

Libraries for RooHelpers::HijackMessageStream:
[legend]

The documentation for this class was generated from the following files: