ATLAS Offline Software
|
a helper class for functions dealing with messages More...
#include <MsgHelpers.h>
Static Public Member Functions | |
static MsgStream & | pkgMsgStream (const std::string &package) |
the message stream for the given package identifier More... | |
static void | setPkgMsgLevel (const std::string &package, MSG::Level level) |
set the package message level for the given name More... | |
static void | printAllPkgMsgLevels () |
print all package message levels More... | |
a helper class for functions dealing with messages
This class contains only static member functions and it is solely meant as a work-around for a limitation in ROOT dictionaries: python/root will not autoload a dictionary when a function contained in that dictionary is requested. However, if the function is a static member function of a class it will work just fine, so instead of standalone functions these are now all static member functions.
Definition at line 30 of file MsgHelpers.h.
|
static |
the message stream for the given package identifier
This is for package-level streaming, which in itself is discouraged, but sometimes it is just not practical to wrap code that wants to write out a message into a tool or algorithm. Maybe if we have dual-use services some day, this may become less relevant.
Normally users shouldn't access this directly, but rely on the wrappers defined above.
Definition at line 70 of file MsgHelpers.cxx.
|
static |
print all package message levels
This is mostly to have a single, stable function that can be called from python-configuration, without having to rely on any of the details of the implementation above.
Definition at line 102 of file MsgHelpers.cxx.
|
static |
set the package message level for the given name
This is mostly to have a single, stable function that can be called from python-configuration, without having to rely on any of the details of the implementation above.
Definition at line 93 of file MsgHelpers.cxx.