BOSS 7.0.6
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(...)   { 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_DEBUG_1(...)   { 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) ; }
 
#define ERS_DEBUG_2(...)   { 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_2) ; }
 
#define ERS_DEBUG_3(...)   { 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) ; }
 
#define ERS_WARN(...)   { char ers_warn_buf[256] ; snprintf(ers_warn_buf,sizeof(ers_warn_buf),__VA_ARGS__) ; ers::StreamFactory::warning(ERS_HERE,ers_warn_buf) ; }
 

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.

◆ ERS_DEBUG_0

#define ERS_DEBUG_0 (   ...)    { 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) ; }

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.

◆ ERS_DEBUG_1

#define ERS_DEBUG_1 (   ...)    { 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) ; }

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.

◆ ERS_DEBUG_2

#define ERS_DEBUG_2 (   ...)    { 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_2) ; }

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

Definition at line 192 of file StreamFactory.h.

◆ ERS_DEBUG_3

#define ERS_DEBUG_3 (   ...)    { 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) ; }

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.

◆ ERS_WARN

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

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.