ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ActsAthenaPrintPolicy Class Referencefinal

#include <Logger.h>

Inheritance diagram for ActsAthenaPrintPolicy:
Collaboration diagram for ActsAthenaPrintPolicy:

Public Member Functions

 ActsAthenaPrintPolicy (IMessageSvc *svc, std::shared_ptr< MsgStream > msg, const std::string &name)
 
void flush (const Acts::Logging::Level &lvl, const std::string &input) override
 
virtual const std::string & name () const override
 
virtual std::unique_ptr< Acts::Logging::OutputPrintPolicy > clone (const std::string &name) const override
 

Private Attributes

IMessageSvc * m_svc
 
std::shared_ptr< MsgStream > m_msg
 
std::string m_name
 

Detailed Description

Definition at line 16 of file Tracking/Acts/ActsInterop/ActsInterop/Logger.h.

Constructor & Destructor Documentation

◆ ActsAthenaPrintPolicy()

ActsAthenaPrintPolicy::ActsAthenaPrintPolicy ( IMessageSvc *  svc,
std::shared_ptr< MsgStream >  msg,
const std::string &  name 
)
inline

Definition at line 20 of file Tracking/Acts/ActsInterop/ActsInterop/Logger.h.

21  : m_svc{svc}, m_msg(msg), m_name(name) {}

Member Function Documentation

◆ clone()

std::unique_ptr< Acts::Logging::OutputPrintPolicy > ActsAthenaPrintPolicy::clone ( const std::string &  name) const
overridevirtual

Definition at line 34 of file Tracking/Acts/ActsInterop/src/Logger.cxx.

35 {
36  auto msg = std::make_shared<MsgStream>(m_svc, name);
37  msg->setLevel(m_msg->level());
38  return std::make_unique<ActsAthenaPrintPolicy>(m_svc, msg, name);
39 }

◆ flush()

void ActsAthenaPrintPolicy::flush ( const Acts::Logging::Level &  lvl,
const std::string &  input 
)
override

Definition at line 21 of file Tracking/Acts/ActsInterop/src/Logger.cxx.

22 {
23  MSG::Level athLevel = ActsTrk::athLevelVector(lvl);
24  (*m_msg) << athLevel << input << endmsg;
25 }

◆ name()

const std::string & ActsAthenaPrintPolicy::name ( ) const
overridevirtual

Definition at line 28 of file Tracking/Acts/ActsInterop/src/Logger.cxx.

29 {
30  return m_name;
31 }

Member Data Documentation

◆ m_msg

std::shared_ptr<MsgStream> ActsAthenaPrintPolicy::m_msg
private

◆ m_name

std::string ActsAthenaPrintPolicy::m_name
private

◆ m_svc

IMessageSvc* ActsAthenaPrintPolicy::m_svc
private

The documentation for this class was generated from the following files:
ActsAthenaPrintPolicy::name
virtual const std::string & name() const override
Definition: Tracking/Acts/ActsInterop/src/Logger.cxx:28
ActsAthenaPrintPolicy::m_msg
std::shared_ptr< MsgStream > m_msg
Definition: Tracking/Acts/ActsInterop/ActsInterop/Logger.h:36
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
ActsAthenaPrintPolicy::m_svc
IMessageSvc * m_svc
Definition: Tracking/Acts/ActsInterop/ActsInterop/Logger.h:35
ActsAthenaPrintPolicy::m_name
std::string m_name
Definition: Tracking/Acts/ActsInterop/ActsInterop/Logger.h:37
ActsTrk::athLevelVector
MSG::Level athLevelVector(Acts::Logging::Level lvl)
Definition: LoggerUtils.cxx:29
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7