/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Member Functions | Private Attributes
GaudiMessaging Class Reference

A namespace holding functions taking a string and sending it to a MsgStream. More...

#include <GaudiMessages.h>

Collaboration diagram for GaudiMessaging:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GaudiMessaging (const std::string &streamName="")
void log (int, const std::string &msg)
void verbose (const std::string &msg)
void debug (const std::string &msg)
void info (const std::string &msg)
void warning (const std::string &msg)
void error (const std::string &msg)
void fatal (const std::string &msg)
void always (const std::string &msg)

Private Member Functions

GaudiMessagingoperator= (const GaudiMessaging &)

Private Attributes

GaudiMsgStreams m_stream

Detailed Description

A namespace holding functions taking a string and sending it to a MsgStream.

An alternative class to GaudiMsgStreams that takes the message as a string argument.

These are meant for Python convnience

This is primarily to simplify access from Python.

Use like:

void my_function() { // a useful label would be the function/method name GaudiMsgStreams log("Some useful label");

log.error("Uh oh!"); log.warning("Oh My!"); log.info("Blah blah"); log.debug("Boooring"); log.verbose("Shut up!");

// needs #include "GaudiKernel/IMessageSvc.h" to define levels int level = MSG::INFO; log.log(level,"Specify the level"); }

Definition at line 91 of file GaudiMessages.h.


Constructor & Destructor Documentation

GaudiMessaging::GaudiMessaging ( const std::string &  streamName = "")

Definition at line 57 of file GaudiMessages.cc.

    : m_stream(streamName)
{
}

Member Function Documentation

GaudiMessaging& GaudiMessaging::operator= ( const GaudiMessaging ) [private]
void GaudiMessaging::log ( int  ilevel,
const std::string &  msg 
)

Definition at line 62 of file GaudiMessages.cc.

{
    MSG::Level level = (MSG::Level)ilevel;
    m_stream.log(level) << msg << endreq;
}
void GaudiMessaging::verbose ( const std::string &  msg)

Definition at line 68 of file GaudiMessages.cc.

{
    this->log(1,msg);
}
void GaudiMessaging::debug ( const std::string &  msg)

Definition at line 72 of file GaudiMessages.cc.

{
    this->log(2,msg);
}
void GaudiMessaging::info ( const std::string &  msg)

Definition at line 76 of file GaudiMessages.cc.

{
    this->log(3,msg);
}
void GaudiMessaging::warning ( const std::string &  msg)

Definition at line 80 of file GaudiMessages.cc.

{
    this->log(4,msg);
}
void GaudiMessaging::error ( const std::string &  msg)

Definition at line 84 of file GaudiMessages.cc.

{
    this->log(5,msg);
}
void GaudiMessaging::fatal ( const std::string &  msg)

Definition at line 88 of file GaudiMessages.cc.

{
    this->log(6,msg);
}
void GaudiMessaging::always ( const std::string &  msg)

Definition at line 92 of file GaudiMessages.cc.

{
    this->log(7,msg);
}

Member Data Documentation

Definition at line 93 of file GaudiMessages.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:53:42 for GaudiMessages by doxygen 1.7.4