ATLAS Offline Software
Loading...
Searching...
No Matches
SGImplSvc.icc
Go to the documentation of this file.
1/* -*- C++ -*- */
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7/** @file SGImplSvc.icc
8 */
9
10#ifndef STOREGATE_SGIMPLSVC_ICC
11#define STOREGATE_SGIMPLSVC_ICC
12
13#include "GaudiKernel/MsgStream.h"
14
15
16
17// HACK LIFTED FROM AthenaBaseComps/AthMsgStreamMacros.h to remove dep loop
18#define SG_MSG_LVL(lvl, x) \
19 do { \
20 if (msgLevel(lvl)) { \
21 msgStream(lvl) << x << endmsg; \
22 } \
23 } while (0)
24
25#define SG_MSG_VERBOSE(x) SG_MSG_LVL(MSG::VERBOSE, x)
26#define SG_MSG_DEBUG(x) SG_MSG_LVL(MSG::DEBUG, x)
27#define SG_MSG_INFO(x) SG_MSG_LVL(MSG::INFO, x)
28#define SG_MSG_WARNING(x) SG_MSG_LVL(MSG::WARNING, x)
29
30
31inline
32void
33SGImplSvc::setProxyProviderSvc(IProxyProviderSvc* pPPSvc) {
34 lock_t lock (m_mutex);
35 m_pPPS = pPPSvc;
36}
37
38inline
39IProxyProviderSvc*
40SGImplSvc::proxyProviderSvc() {
41 lock_t lock (m_mutex);
42 return m_pPPS;
43}
44
45
46#endif // STOREGATE_SGIMPLSVC_ICC