ATLAS Offline Software
AsgMessagingForward.cxx
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 // Local include(s):
8 
9 namespace asg
10 {
11  bool AsgMessagingForward::msgLvl( const MSG::Level lvl ) const
12  {
13  MsgStream& msg = m_msg();
14  if (msg.level() <= lvl)
15  {
16  msg << lvl;
17  return true;
18  } else
19  {
20  return false;
21  }
22  }
23 
24  MsgStream& AsgMessagingForward::msg() const
25  {
26  return m_msg();
27  }
28 
29  MsgStream& AsgMessagingForward::msg( const MSG::Level lvl ) const
30  {
31  MsgStream& msg = m_msg ();
32  msg << lvl;
33  return msg;
34  }
35 }
asg::AsgMessagingForward::m_msg
std::function< MsgStream &()> m_msg
the message stream we use
Definition: AsgMessagingForward.h:77
asg
Definition: DataHandleTestTool.h:28
AsgMessagingForward.h
asg::AsgMessagingForward::msg
MsgStream & msg() const
The standard message stream.
Definition: AsgMessagingForward.cxx:24
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
asg::AsgMessagingForward::msgLvl
bool msgLvl(const MSG::Level lvl) const
Test the output level of the object.
Definition: AsgMessagingForward.cxx:11