| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Member Functions | Private Attributes

# Gaudi::Parsers::Messages Class Reference

`#include <Messages.h>`

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

List of all members.

## 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 Position & | pos,
|  | const std::string & | info
| ) |  | `[inline]`

Definition at line 36 of file Messages.h.

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

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::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_v22r4/GaudiSvc/src/JobOptionsSvc/Messages.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiSvc/src/JobOptionsSvc/Message.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines