| The Gaudi Framework v27r1

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

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

Public Member Functions | Private Member Functions | Private Attributes | List of all members
Gaudi::Parsers::Messages Class Referencefinal

`#include <src/JobOptionsSvc/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. More...

## 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.

22 : stream_(stream) {}
Gaudi::Parsers::Messages::stream_
MsgStream & stream_
Definition: Messages.h:54

## Member Function Documentation

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

Definition at line 32 of file Messages.h.

32 {
33 AddMessage(MSG::ERROR, error);
34 }
Gaudi::Parsers::Messages::AddMessage
void AddMessage(MSG::Level level, const std::string &message)
Definition: Message.cpp:15
MSG::ERROR
Definition: IMessageSvc.h:21

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

Definition at line 44 of file Messages.h.

44 {
45 AddMessage(MSG::ERROR, pos, error);
46 }
Gaudi::Parsers::Messages::AddMessage
void AddMessage(MSG::Level level, const std::string &message)
Definition: Message.cpp:15
MSG::ERROR
Definition: IMessageSvc.h:21

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

Definition at line 24 of file Messages.h.

24 {
25 AddMessage(MSG::INFO, info);
26 }
Gaudi::Parsers::Messages::AddMessage
void AddMessage(MSG::Level level, const std::string &message)
Definition: Message.cpp:15
MSG::INFO
Definition: IMessageSvc.h:19

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

Definition at line 36 of file Messages.h.

36 {
37 AddMessage(MSG::INFO, pos, info);
38 }
Gaudi::Parsers::Messages::AddMessage
void AddMessage(MSG::Level level, const std::string &message)
Definition: Message.cpp:15
MSG::INFO
Definition: IMessageSvc.h:19

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

Definition at line 15 of file Message.cpp.

16 {
17 stream_ << level << message << endmsg;
18 }
gaudirun.level
level
Definition: gaudirun.py:261
Gaudi::Parsers::Messages::stream_
MsgStream & stream_
Definition: Messages.h:54
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

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

Definition at line 20 of file Message.cpp.

21 {
22 if (pos.filename() != m_currentFilename) {
23 stream_ << level << "# =======> " << pos.filename() << endmsg;
24 m_currentFilename = pos.filename();
25 }
26 stream_ << level << "# "
27 << boost::format("(%1%,%2%): %3%") % pos.line() % pos.column() % message
28 << endmsg;
29 }
Gaudi::Parsers::Messages::m_currentFilename
std::string m_currentFilename
Name of last printed filename.
Definition: Messages.h:56
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119
gaudirun.level
level
Definition: gaudirun.py:261
Gaudi::Parsers::Messages::stream_
MsgStream & stream_
Definition: Messages.h:54
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:244

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

Definition at line 28 of file Messages.h.

28 {
29 AddMessage(MSG::WARNING, warning);
30 }
Gaudi::Parsers::Messages::AddMessage
void AddMessage(MSG::Level level, const std::string &message)
Definition: Message.cpp:15
MSG::WARNING
Definition: IMessageSvc.h:20

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

Definition at line 40 of file Messages.h.

40 {
41 AddMessage(MSG::WARNING, pos, warning);
42 }
Gaudi::Parsers::Messages::AddMessage
void AddMessage(MSG::Level level, const std::string &message)
Definition: Message.cpp:15
MSG::WARNING
Definition: IMessageSvc.h:20

## 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:

- GaudiCoreSvc/src/JobOptionsSvc/Messages.h
- GaudiCoreSvc/src/JobOptionsSvc/Message.cpp