ATLAS Offline Software
Loading...
Searching...
No Matches
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

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{std::move(msg)},
24 m_name{name} {}
virtual const std::string & name() const override
IMessageSvc * getMessageSvc(bool quiet=false)
MsgStream & msg
Definition testRead.cxx:32

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}
#define endmsg
MSG::Level athLevelVector(Acts::Logging::Level lvl)

◆ 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

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

36{};

◆ m_name

std::string ActsAthenaPrintPolicy::m_name {}
private

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

37{};

◆ m_svc

IMessageSvc* ActsAthenaPrintPolicy::m_svc {}
private

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

35{};

The documentation for this class was generated from the following files: