| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Gaudi::Parsers::Messages Class Reference

`#include <Messages.h>`

Collaboration diagram for Gaudi::Parsers::Messages:
[legend]

## Public Member Functions
| Messages (MsgStream &stream)
void | AddInfo (const std::string &info)
void | AddWarning (const std::string &warning)
void | AddError (const std::string &error)
void | AddInfo (const Position &pos, const std::string &info)
void | AddWarning (const Position &pos, const std::string &warning)
void | AddError (const Position &pos, const std::string &error)

## Private Member Functions
void | AddMessage (MSG::Level level, const std::string &message)
void | AddMessage (MSG::Level level, const Position &pos, const std::string &message)

## Private Attributes
MsgStream & | stream_
std::string | m_currentFilename
| Name of last printed filename.

## Detailed Description

Definition at line 20 of file Messages.h.

## Constructor & Destructor Documentation

Gaudi::Parsers::Messages::Messages | ( | MsgStream & | stream | ) |
| inline

Definition at line 22 of file Messages.h.

: stream_(stream), m_currentFilename() {}

## Member Function Documentation

void Gaudi::Parsers::Messages::AddError | ( | const std::string & | error | ) |
| inline

Definition at line 32 of file Messages.h.

{
AddMessage(MSG::ERROR, error);
}

void Gaudi::Parsers::Messages::AddError | ( | const Position & | pos,
|  | const std::string & | error
| ) |  |
| inline

Definition at line 44 of file Messages.h.

{
AddMessage(MSG::ERROR, pos, error);
}

void Gaudi::Parsers::Messages::AddInfo | ( | const std::string & | info | ) |
| inline

Definition at line 24 of file Messages.h.

{
AddMessage(MSG::INFO, info);
}

void Gaudi::Parsers::Messages::AddInfo | ( | const Position & | pos,
|  | const std::string & | info
| ) |  |
| inline

Definition at line 36 of file Messages.h.

{
AddMessage(MSG::INFO, pos, info);
}

void Gaudi::Parsers::Messages::AddMessage | ( | MSG::Level | level,
|  | const std::string & | message
| ) |  |
| private

Definition at line 16 of file Message.cpp.

{
stream_ << level << message << endmsg;
}

void Gaudi::Parsers::Messages::AddMessage | ( | MSG::Level | level,
|  | const Position & | pos,
|  | const std::string & | message
| ) |  |
| private

Definition at line 21 of file Message.cpp.

{
if (pos.filename() != m_currentFilename) {
stream_ << level << "# =======> " << pos.filename() << endmsg;
m_currentFilename = pos.filename();
}
std::string str_msg = str(boost::format("(%1%,%2%): %3%")
% pos.line() % pos.column() % message);
stream_ << level << "# " << str_msg << endmsg;
}

void Gaudi::Parsers::Messages::AddWarning | ( | const std::string & | warning | ) |
| inline

Definition at line 28 of file Messages.h.

{
AddMessage(MSG::WARNING, warning);
}

void Gaudi::Parsers::Messages::AddWarning | ( | const Position & | pos,
|  | const std::string & | warning
| ) |  |
| inline

Definition at line 40 of file Messages.h.

{
AddMessage(MSG::WARNING, pos, warning);
}

## Member Data Documentation

std::string Gaudi::Parsers::Messages::m_currentFilename
| private

Name of last printed filename.

Definition at line 56 of file Messages.h.

MsgStream& Gaudi::Parsers::Messages::stream_
| private

Definition at line 54 of file Messages.h.

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiCoreSvc/src/JobOptionsSvc/Messages.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiCoreSvc/src/JobOptionsSvc/Message.cpp