Gaudi Framework, version v25r2
Home
Generated: Wed Jun 4 2014
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
.cern.ch
sw
Gaudi
releases
GAUDI
GAUDI_v25r2
GaudiCoreSvc
src
JobOptionsSvc
Messages.h
Go to the documentation of this file.
1
#ifndef JOBOPTIONSVC_MESSAGES_H_
2
#define JOBOPTIONSVC_MESSAGES_H_
3
// ============================================================================
4
// STD & STL
5
// ============================================================================
6
#include <string>
7
#include <vector>
8
#include <iostream>
9
// ============================================================================
10
// Boost
11
// ============================================================================
12
13
// ============================================================================
14
// Gaudi:
15
// ============================================================================
16
#include "
GaudiKernel/MsgStream.h
"
17
#include "
Position.h
"
18
// ============================================================================
19
namespace
Gaudi
{
namespace
Parsers {
20
class
Messages
{
21
public
:
22
Messages
(
MsgStream
& stream):
stream_
(stream),
m_currentFilename
() {}
23
//Messages(const MsgStream& stream):stream_(stream){}
24
void
AddInfo
(
const
std::string& info) {
25
AddMessage
(
MSG::INFO
, info);
26
}
27
28
void
AddWarning
(
const
std::string& warning) {
29
AddMessage
(
MSG::WARNING
, warning);
30
}
31
32
void
AddError
(
const
std::string& error) {
33
AddMessage
(
MSG::ERROR
, error);
34
}
35
36
void
AddInfo
(
const
Position
& pos,
const
std::string& info) {
37
AddMessage
(
MSG::INFO
, pos, info);
38
}
39
40
void
AddWarning
(
const
Position
& pos,
const
std::string& warning) {
41
AddMessage
(
MSG::WARNING
, pos, warning);
42
}
43
44
void
AddError
(
const
Position
& pos,
const
std::string& error) {
45
AddMessage
(
MSG::ERROR
, pos, error);
46
}
47
48
private
:
49
void
AddMessage(
MSG::Level
level
,
const
std::string& message);
50
51
void
AddMessage(
MSG::Level
level
,
const
Position
& pos,
52
const
std::string& message);
53
private
:
54
MsgStream
&
stream_
;
56
std::string
m_currentFilename
;
57
};
58
59
// ============================================================================
60
61
// ============================================================================
62
}
/* Gaudi */
}
/* Parsers */
63
// ============================================================================
64
65
#endif // JOBOPTIONSVC_MESSAGES_H_
Generated at Wed Jun 4 2014 14:48:56 for Gaudi Framework, version v25r2 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004