ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TrigConf::TrigConfMessaging Class Reference

Class to provide easy access to TrigConf::MsgStream for TrigConf classes. More...

#include <TrigConfMessaging.h>

Inherited by AthenaL1TopoHistSvc::AthenaL1TopoHistSvcImpl, MuctpiXMLHelper [private], MuctpiXMLParser [private], StandaloneL1TopoHistSvc::StandaloneL1TopoHistSvcImpl, TCS::ConfigurableAlg, TCS::GlobalDecision, TCS::GlobalOutput, TCS::TopoCoreSimResult, TCS::TopoInputEvent, TCS::TopoSteering, TrigConf::DBLoader, TrigConf::JsonFileLoader, TrigConf::JsonFileWriterHLT, TrigConf::JsonFileWriterL1, TrigConf::SessionMgr, TrigConf::StorageMgr, and TrigConf::TrigDBLoader.

Collaboration diagram for TrigConf::TrigConfMessaging:

Public Member Functions

 TrigConfMessaging (const std::string &name)
 Constructor with parameters. More...
 
virtual ~TrigConfMessaging ()=default
 Destructor. More...
 
bool msgLvl (const MSGTC::Level lvl) const
 Test the output level. More...
 
MsgStreamTCmsg () const
 The standard message stream. More...
 
MsgStreamTCmsg (const MSGTC::Level lvl) const
 The standard message stream. More...
 

Private Member Functions

 TrigConfMessaging ()=delete
 
 TrigConfMessaging (const TrigConfMessaging &rhs)=delete
 
TrigConfMessagingoperator= (const TrigConfMessaging &rhs)=delete
 

Private Attributes

boost::thread_specific_ptr< MsgStreamTCm_msg_tls
 MsgStreamTC instance (a std::cout like with print-out levels) More...
 
std::string m_name
 

Detailed Description

Class to provide easy access to TrigConf::MsgStream for TrigConf classes.

This is a copy&paste of AthMessaging and used in exactly the same way but without introducing Gaudi/Athena dependencies.

Definition at line 28 of file TrigConfMessaging.h.

Constructor & Destructor Documentation

◆ TrigConfMessaging() [1/3]

TrigConf::TrigConfMessaging::TrigConfMessaging ( const std::string &  name)
inline

Constructor with parameters.

Parameters
nameComponent name used in the messages

Definition at line 34 of file TrigConfMessaging.h.

34  :
35  m_name(name)
36  {}

◆ ~TrigConfMessaging()

virtual TrigConf::TrigConfMessaging::~TrigConfMessaging ( )
virtualdefault

Destructor.

◆ TrigConfMessaging() [2/3]

TrigConf::TrigConfMessaging::TrigConfMessaging ( )
privatedelete

◆ TrigConfMessaging() [3/3]

TrigConf::TrigConfMessaging::TrigConfMessaging ( const TrigConfMessaging rhs)
privatedelete

Member Function Documentation

◆ msg() [1/2]

MsgStreamTC & TrigConf::TrigConfMessaging::msg ( ) const
inline

The standard message stream.

Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 81 of file TrigConfMessaging.h.

82  {
83  MsgStreamTC* ms = m_msg_tls.get();
84  if (!ms) {
85  ms = new MsgStreamTC(m_name);
86  m_msg_tls.reset(ms);
87  }
88  return *ms;
89  }

◆ msg() [2/2]

MsgStreamTC & TrigConf::TrigConfMessaging::msg ( const MSGTC::Level  lvl) const
inline

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 91 of file TrigConfMessaging.h.

92  {
93  return msg() << lvl;
94  }

◆ msgLvl()

bool TrigConf::TrigConfMessaging::msgLvl ( const MSGTC::Level  lvl) const
inline

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicting if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 70 of file TrigConfMessaging.h.

71  {
72  if (msg().level() <= lvl) {
73  msg() << lvl;
74  return true;
75  }
76  else {
77  return false;
78  }
79  }

◆ operator=()

TrigConfMessaging& TrigConf::TrigConfMessaging::operator= ( const TrigConfMessaging rhs)
privatedelete

Member Data Documentation

◆ m_msg_tls

boost::thread_specific_ptr<MsgStreamTC> TrigConf::TrigConfMessaging::m_msg_tls
mutableprivate

MsgStreamTC instance (a std::cout like with print-out levels)

Definition at line 66 of file TrigConfMessaging.h.

◆ m_name

std::string TrigConf::TrigConfMessaging::m_name
private

Definition at line 67 of file TrigConfMessaging.h.


The documentation for this class was generated from the following file:
TrigConf::TrigConfMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStreamTC > m_msg_tls
MsgStreamTC instance (a std::cout like with print-out levels)
Definition: TrigConfMessaging.h:66
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
TrigConf::TrigConfMessaging::m_name
std::string m_name
Definition: TrigConfMessaging.h:67
TrigConf::TrigConfMessaging::msg
MsgStreamTC & msg() const
The standard message stream.
Definition: TrigConfMessaging.h:81
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228