| The Gaudi Framework v30r0 (c919700c)

- 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 23 of file Messages.h.

## Constructor & Destructor Documentation

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

Definition at line 26 of file Messages.h.

26 : stream_( stream ) {}
Gaudi::Parsers::Messages::stream_
MsgStream & stream_
Definition: Messages.h:46

## Member Function Documentation

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

Definition at line 32 of file Messages.h.

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

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

Definition at line 38 of file Messages.h.

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

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

Definition at line 28 of file Messages.h.

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

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

Definition at line 34 of file Messages.h.

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

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

Definition at line 15 of file Message.cpp.

15 { stream_ << level << message << endmsg; }
gaudirun.level
level
Definition: gaudirun.py:271
Gaudi::Parsers::Messages::stream_
MsgStream & stream_
Definition: Messages.h:46
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209

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

Definition at line 17 of file Message.cpp.

18 {
19 if ( pos.filename() != m_currentFilename ) {
20 stream_ << level << "# =======> " << pos.filename() << endmsg;
21 m_currentFilename = pos.filename();
22 }
23 stream_ << level << "# " << boost::format( "(%1%,%2%): %3%" ) % pos.line() % pos.column() % message << endmsg;
24 }
Gaudi::Parsers::Messages::m_currentFilename
std::string m_currentFilename
Name of last printed filename.
Definition: Messages.h:48
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:120
gaudirun.level
level
Definition: gaudirun.py:271
Gaudi::Parsers::Messages::stream_
MsgStream & stream_
Definition: Messages.h:46
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:209

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

Definition at line 30 of file Messages.h.

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

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

Definition at line 36 of file Messages.h.

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

## Member Data Documentation

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

Name of last printed filename.

Definition at line 48 of file Messages.h.

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

Definition at line 46 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