The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
GAUDI-1185.cpp
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
12
13namespace GaudiTesting {
14 namespace JIRA {
15
18 class GAUDI_1185 : public Algorithm {
19 public:
21
24 if ( !sc ) return sc;
25
26 auto level = msgLevel();
27 always() << "Initial msgLevel(): " << int( level ) << endmsg;
28 always() << "Current msgLevel(): " << int( msgLevel() ) << endmsg;
29
30 return sc;
31 }
32 StatusCode execute() override { return StatusCode::SUCCESS; }
33 };
34
35 DECLARE_COMPONENT( GAUDI_1185 )
36 } // namespace JIRA
37} // namespace GaudiTesting
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition MsgStream.h:198
#define DECLARE_COMPONENT(type)
MsgStream & always() const
shortcut for the method msgStream(MSG::ALWAYS)
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition Algorithm.h:98
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Definition Algorithm.h:175
Special service to expose GAUDI-1185.
StatusCode initialize() override
StatusCode execute() override
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
constexpr static const auto SUCCESS
Definition StatusCode.h:99