ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace 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}
std::function< MsgStream &()> m_msg
the message stream we use
bool msgLvl(const MSG::Level lvl) const
Test the output level of the object.
MsgStream & msg() const
The standard message stream.