ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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

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

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(msg) {}

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.get());
59  msg->setLevel(ActsTrk::athLevelVector(level));
60  return std::make_unique<ActsAthenaFilterPolicy>(msg);
61 }

◆ doPrint()

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

Definition at line 42 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 }

Member Data Documentation

◆ m_msg

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

The documentation for this class was generated from the following files:
ActsAthenaFilterPolicy::m_msg
std::shared_ptr< MsgStream > m_msg
Definition: Tracking/Acts/ActsInterop/ActsInterop/Logger.h:55
ActsTrk::actsLevelVector
Acts::Logging::Level actsLevelVector(MSG::Level lvl)
Definition: LoggerUtils.cxx:9
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ActsAthenaFilterPolicy::level
virtual Acts::Logging::Level level() const override
Definition: Tracking/Acts/ActsInterop/src/Logger.cxx:50
ActsTrk::athLevelVector
MSG::Level athLevelVector(Acts::Logging::Level lvl)
Definition: LoggerUtils.cxx:29
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7