FWCore
MessageLogger
src
SilentMLscribe.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: MessageLogger
4
// Class : SilentMLscribe
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Chris Jones
10
// Created: Thu Jul 30 09:57:57 CDT 2009
11
//
12
13
// system include files
14
15
// user include files
16
#include "
FWCore/MessageLogger/interface/SilentMLscribe.h
"
17
#include "
FWCore/MessageLogger/interface/ErrorObj.h
"
18
19
namespace
edm
{
20
namespace
service
{
21
22
//
23
// constants, enums and typedefs
24
//
25
26
//
27
// static data member definitions
28
//
29
30
//
31
// constructors and destructor
32
//
33
SilentMLscribe::SilentMLscribe
() {}
34
35
// SilentMLscribe::SilentMLscribe(const SilentMLscribe& rhs)
36
// {
37
// // do actual copying here;
38
// }
39
40
SilentMLscribe::~SilentMLscribe
() {}
41
42
//
43
// assignment operators
44
//
45
// const SilentMLscribe& SilentMLscribe::operator=(const SilentMLscribe& rhs)
46
// {
47
// //An exception safe implementation is
48
// SilentMLscribe temp(rhs);
49
// swap(rhs);
50
//
51
// return *this;
52
// }
53
54
//
55
// member functions
56
//
57
void
SilentMLscribe::runCommand
(
MessageLoggerQ::OpCode
opcode,
void
* operand) {
58
//even though we don't print, have to clean up memory
59
switch
(opcode) {
60
case
MessageLoggerQ::LOG_A_MESSAGE
: {
61
ErrorObj
* errorobj_p = static_cast<ErrorObj*>(operand);
62
delete
errorobj_p;
63
break
;
64
}
65
case
MessageLoggerQ::JOBMODE
:
66
case
MessageLoggerQ::GROUP_STATS
: {
67
std::string
* string_p = static_cast<std::string*>(operand);
68
delete
string_p;
69
break
;
70
}
71
default
:
72
break
;
73
}
74
}
75
76
//
77
// const member functions
78
//
79
80
//
81
// static member functions
82
//
83
}
// namespace service
84
}
// namespace edm
service
Definition:
service.py:1
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ErrorObj
Definition:
ErrorObj.h:44
SilentMLscribe.h
ErrorObj.h
edm::MessageLoggerQ::GROUP_STATS
Definition:
MessageLoggerQ.h:43
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::service::SilentMLscribe::~SilentMLscribe
~SilentMLscribe() override
Definition:
SilentMLscribe.cc:40
edm::MessageLoggerQ::LOG_A_MESSAGE
Definition:
MessageLoggerQ.h:29
edm::MessageLoggerQ::JOBMODE
Definition:
MessageLoggerQ.h:37
edm::service::SilentMLscribe::runCommand
void runCommand(MessageLoggerQ::OpCode opcode, void *operand) override
Definition:
SilentMLscribe.cc:57
edm::MessageLoggerQ::OpCode
OpCode
Definition:
MessageLoggerQ.h:26
edm::service::SilentMLscribe::SilentMLscribe
SilentMLscribe()
Definition:
SilentMLscribe.cc:33
Generated for CMSSW Reference Manual by
1.8.16