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 (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 17 of file Tracking/Acts/ActsInterop/ActsInterop/Logger.h.

Constructor & Destructor Documentation

◆ ActsAthenaPrintPolicy()

ActsAthenaPrintPolicy::ActsAthenaPrintPolicy ( std::shared_ptr< MsgStream >  msg,
const std::string &  name 
)

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

21  :
23  m_msg{msg},
24  m_name{name} {}

Member Function Documentation

◆ clone()

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

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

39  {
40  return std::make_unique<ActsAthenaPrintPolicy>(m_msg, name);
41 }

◆ flush()

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

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

27 {
28  MSG::Level athLevel = ActsTrk::athLevelVector(lvl);
29  (*m_msg) << athLevel << input << endmsg;
30 }

◆ name()

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

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

34 {
35  return m_name;
36 }

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:33
ActsAthenaPrintPolicy::m_msg
std::shared_ptr< MsgStream > m_msg
Definition: Tracking/Acts/ActsInterop/ActsInterop/Logger.h:36
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
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
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