CMS 3D CMS Logo

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
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  //
34 
35  // SilentMLscribe::SilentMLscribe(const SilentMLscribe& rhs)
36  // {
37  // // do actual copying here;
38  // }
39 
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) {
61  ErrorObj* errorobj_p = static_cast<ErrorObj*>(operand);
62  delete errorobj_p;
63  break;
64  }
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