Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQM
TrackerCommon
interface
MessageDispatcher.h
Go to the documentation of this file.
1
#ifndef _DQM_TrackerCommon_MessageDispatcher_h_
2
#define _DQM_TrackerCommon_MessageDispatcher_h_
3
4
#include <vector>
5
#include <string>
6
7
#include "xgi/Utils.h"
8
#include "xgi/Method.h"
9
10
11
enum
MessageType
{
info
= 0,
warning
= 1,
error
= 2 };
12
13
14
class
Message
15
{
16
17
private
:
18
19
std::string
title
;
20
std::string
text
;
21
MessageType
type
;
22
23
public
:
24
25
Message
(
std::string
the_title,
std::string
the_text,
MessageType
the_type)
26
{
27
type
= the_type;
28
title
= the_title;
29
text
= the_text;
30
}
31
32
std::string
getTitle
() {
return
title
; }
33
std::string
getText
() {
return
text
; }
34
std::string
getType
();
35
};
36
37
38
class
MessageDispatcher
39
{
40
41
private
:
42
43
std::vector<Message *>
undispatched
;
44
45
public
:
46
47
MessageDispatcher
()
48
{
49
}
50
51
void
add
(
Message
*new_message)
52
{
53
undispatched
.push_back(new_message);
54
}
55
56
bool
hasAnyMessages
()
57
{
58
return
(!
undispatched
.empty());
59
}
60
61
void
dispatchMessages
(
xgi::Output
*
out
);
62
63
};
64
65
#endif
MessageType
MessageType
Definition:
MessageDispatcher.h:11
MessageDispatcher::undispatched
std::vector< Message * > undispatched
Definition:
MessageDispatcher.h:43
type
type
Definition:
HCALResponse.h:21
warning
Definition:
MessageDispatcher.h:11
Message
Definition:
MessageDispatcher.h:14
MessageDispatcher::hasAnyMessages
bool hasAnyMessages()
Definition:
MessageDispatcher.h:56
Message::getText
std::string getText()
Definition:
MessageDispatcher.h:33
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Message::Message
Message(std::string the_title, std::string the_text, MessageType the_type)
Definition:
MessageDispatcher.h:25
Message::getType
std::string getType()
Definition:
MessageDispatcher.cc:4
Message::type
MessageType type
Definition:
MessageDispatcher.h:21
info
Definition:
MessageDispatcher.h:11
MessageDispatcher::dispatchMessages
void dispatchMessages(xgi::Output *out)
Definition:
MessageDispatcher.cc:11
MessageDispatcher
Definition:
MessageDispatcher.h:38
MessageDispatcher::add
void add(Message *new_message)
Definition:
MessageDispatcher.h:51
Message::text
std::string text
Definition:
MessageDispatcher.h:20
dbtoconf.out
tuple out
Definition:
dbtoconf.py:99
Message::getTitle
std::string getTitle()
Definition:
MessageDispatcher.h:32
MessageDispatcher::MessageDispatcher
MessageDispatcher()
Definition:
MessageDispatcher.h:47
Message::title
std::string title
Definition:
MessageDispatcher.h:19
Output
#define Output(cl)
Definition:
vmac.h:193
error
Definition:
MessageDispatcher.h:11
Generated for CMSSW Reference Manual by
1.8.5