ATLAS Offline Software
Loading...
Searching...
No Matches
MSG Namespace Reference

Classes

struct  DummyStruct
 This struct is here only to make the dictionary generation for types in the MSG namespace successful. More...

Functions

const std::string & name (Level lvl)
 Convenience function for translating message levels to strings.

Function Documentation

◆ name()

const std::string & MSG::name ( Level lvl)

Convenience function for translating message levels to strings.

Definition at line 19 of file MsgLevel.cxx.

19 {
20
21 switch( lvl ) {
22 DECLARE_LEVEL( NIL );
23 DECLARE_LEVEL( VERBOSE );
25 DECLARE_LEVEL( INFO );
26 DECLARE_LEVEL( WARNING );
27 DECLARE_LEVEL( ERROR );
28 DECLARE_LEVEL( FATAL );
29 DECLARE_LEVEL( ALWAYS );
30 default:
31 static const std::string dummy( "<unknown>" );
32 return dummy;
33 break;
34 }
35 }
#define DECLARE_LEVEL(NAME)
Helper macro for constructing the function's code.
Definition MsgLevel.cxx:9
#define DEBUG
Definition page_access.h:11