CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
StreamFactory.h File Reference
#include "ers/Core.h"
#include "ers/Context.h"
#include <map>

Go to the source code of this file.

Classes

class  ers::StreamFactory
 Factory for Stream objects and repository of default streams. More...
 

Namespaces

namespace  ers
 

Macros

#define DEBUG_LEVEL   3
 
#define ERS_DEBUG_0(...)
 
#define ERS_DEBUG_1(...)
 
#define ERS_DEBUG_2(...)
 
#define ERS_DEBUG_3(...)
 
#define ERS_WARN(...)
 

Functions

std::ostream & ers::operator<< (std::ostream &, const ers::StreamFactory &factory)
 streaming operator
 

Macro Definition Documentation

◆ DEBUG_LEVEL

#define DEBUG_LEVEL   3

If no debug level is defined, we assume the highest level

Definition at line 166 of file StreamFactory.h.

Referenced by ers::Context::debug_level().

◆ ERS_DEBUG_0

#define ERS_DEBUG_0 ( ...)
Value:
{ char ers_debug_buf[256] ; snprintf(ers_debug_buf,sizeof(ers_debug_buf),__VA_ARGS__) ; ers::StreamFactory::debug(ERS_HERE,ers_debug_buf,ers::debug_0) ; }
#define ERS_HERE
Definition Context.h:119
static void debug(Issue *i, severity_t)
sends an Issue to the debug stream
@ debug_0
Definition Core.h:24

Sends a debug message with level 0, the first parameter is a printf like pattern, the next are parameters for it

Definition at line 173 of file StreamFactory.h.

Referenced by foo(), main(), and massive_test().

◆ ERS_DEBUG_1

#define ERS_DEBUG_1 ( ...)
Value:
{ char ers_debug_buf[256] ; snprintf(ers_debug_buf,sizeof(ers_debug_buf),__VA_ARGS__) ; ers::StreamFactory::debug(ERS_HERE,ers_debug_buf,ers::debug_1) ; }
@ debug_1
Definition Core.h:24

Sends a debug message with level 1, the first parameter is a printf like pattern, the next are parameters for it

Definition at line 182 of file StreamFactory.h.

Referenced by eformat::FullEventFragment< TPointer >::assign(), eformat::Header< TPointer >::assign(), eformat::ROBFragment< TPointer >::assign(), eformat::ROSFragment< TPointer >::assign(), eformat::SubDetectorFragment< TPointer >::assign(), eformat::get_robs(), eformat::Header< TPointer >::Header(), and eformat::ROBFragment< TPointer >::ROBFragment().

◆ ERS_DEBUG_2

◆ ERS_DEBUG_3

#define ERS_DEBUG_3 ( ...)
Value:
{ char ers_debug_buf[256] ; snprintf(ers_debug_buf,sizeof(ers_debug_buf),__VA_ARGS__) ; ers::StreamFactory::debug(ERS_HERE,ers_debug_buf,ers::debug_3) ; }
@ debug_3
Definition Core.h:24

Sends a debug message with level 3, the first parameter is a printf like pattern, the next are parameters for it

Definition at line 199 of file StreamFactory.h.

Referenced by eformat::write::FullEventFragment::append(), eformat::write::ROSFragment::append(), eformat::write::SubDetectorFragment::append(), eformat::FullEventFragment< TPointer >::assign(), eformat::Header< TPointer >::assign(), eformat::ROBFragment< TPointer >::assign(), eformat::ROSFragment< TPointer >::assign(), eformat::SubDetectorFragment< TPointer >::assign(), eformat::Header< TPointer >::child(), eformat::old::convert_source(), eformat::write::FullEventFragment::FullEventFragment(), eformat::write::FullEventFragment::FullEventFragment(), eformat::write::FullEventFragment::FullEventFragment(), eformat::write::FullEventFragment::FullEventFragment(), eformat::write::FullEventFragment::FullEventFragment(), eformat::write::FullEventFragment::FullEventFragment(), eformat::Header< TPointer >::Header(), main(), eformat::next_fragment(), eformat::write::FullEventFragment::operator=(), eformat::write::ROBFragment::operator=(), eformat::write::ROSFragment::operator=(), eformat::write::SubDetectorFragment::operator=(), eformat::ROBFragment< TPointer >::ROBFragment(), eformat::write::ROBFragment::ROBFragment(), eformat::write::ROBFragment::ROBFragment(), eformat::write::ROBFragment::ROBFragment(), eformat::write::ROBFragment::ROBFragment(), eformat::write::ROBFragment::ROBFragment(), eformat::write::ROSFragment::ROSFragment(), eformat::write::ROSFragment::ROSFragment(), eformat::write::ROSFragment::ROSFragment(), eformat::write::ROSFragment::ROSFragment(), eformat::write::ROSFragment::ROSFragment(), eformat::write::SubDetectorFragment::SubDetectorFragment(), eformat::write::SubDetectorFragment::SubDetectorFragment(), eformat::write::SubDetectorFragment::SubDetectorFragment(), eformat::write::SubDetectorFragment::SubDetectorFragment(), and eformat::write::SubDetectorFragment::SubDetectorFragment().

◆ ERS_WARN

#define ERS_WARN ( ...)
Value:
{ char ers_warn_buf[256] ; snprintf(ers_warn_buf,sizeof(ers_warn_buf),__VA_ARGS__) ; ers::StreamFactory::warning(ERS_HERE,ers_warn_buf) ; }
Stream * warning()
Warning stream.

Sends a warning, the first parameter is a printf like pattern, the next are parameters for it

Definition at line 205 of file StreamFactory.h.

Referenced by eformat::old::convert_source().