ATLAS Offline Software
Loading...
Searching...
No Matches
ActsAthenaFilterPolicy Class Referencefinal

#include <Logger.h>

Inheritance diagram for ActsAthenaFilterPolicy:
Collaboration diagram for ActsAthenaFilterPolicy:

Public Member Functions

 ActsAthenaFilterPolicy (std::shared_ptr< MsgStream > msg)
bool doPrint (const Acts::Logging::Level &lvl) const override
virtual Acts::Logging::Level level () const override
virtual std::unique_ptr< Acts::Logging::OutputFilterPolicy > clone (Acts::Logging::Level level) const override

Private Attributes

std::shared_ptr< MsgStream > m_msg

Detailed Description

Constructor & Destructor Documentation

◆ ActsAthenaFilterPolicy()

ActsAthenaFilterPolicy::ActsAthenaFilterPolicy ( std::shared_ptr< MsgStream > msg)
inline

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

42: m_msg(std::move(msg)) {}
MsgStream & msg
Definition testRead.cxx:32

Member Function Documentation

◆ clone()

std::unique_ptr< Acts::Logging::OutputFilterPolicy > ActsAthenaFilterPolicy::clone ( Acts::Logging::Level level) const
overridevirtual

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

57{
58 auto msg = std::make_shared<MsgStream>(*m_msg);
60 return std::make_unique<ActsAthenaFilterPolicy>(msg);
61}
virtual Acts::Logging::Level level() const override
MSG::Level athLevelVector(Acts::Logging::Level lvl)

◆ doPrint()

bool ActsAthenaFilterPolicy::doPrint ( const Acts::Logging::Level & lvl) const
override

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

43 {
44
45 MSG::Level athLevel = ActsTrk::athLevelVector(lvl);
46 return m_msg->level() <= athLevel;
47}

◆ level()

Acts::Logging::Level ActsAthenaFilterPolicy::level ( ) const
overridevirtual

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

51{
52 return ActsTrk::actsLevelVector(m_msg->level());
53}
Acts::Logging::Level actsLevelVector(MSG::Level lvl)

Member Data Documentation

◆ m_msg

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

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