ATLAS Offline Software
TRT_ConditionsTestSvc.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRT_CONDITIONSTESTSVC_H
6 #define TRT_CONDITIONSTESTSVC_H
7 
16 
17 class Identifier;
18 
20  virtual public ITRT_ConditionsSvc,
21  virtual public ITRT_ConditionsTestSvc
22 {
23 
24  public:
25 
26  TRT_ConditionsTestSvc( const std::string& name, ISvcLocator* pSvcLocator );
28 
29  virtual StatusCode initialize();
30  virtual StatusCode finalize();
31 
32  virtual StatusCode queryInterface( const InterfaceID& riid, void** ppvInterface );
33 
35 
36 
38 
41  StatusCode test( const Identifier& );
42 
44 
46 
47 
49 
53 
55 
56  private:
57 
58 };
59 
61 inline StatusCode TRT_ConditionsTestSvc::queryInterface( const InterfaceID& riid, void** ppvInterface ) {
62  if ( ITRT_ConditionsSvc::interfaceID() == riid ) {
63  ATH_MSG_DEBUG("TRT_ConditionsTestSvc interface queried as ITRT_ConditionsSvc.");
64  *ppvInterface = dynamic_cast<ITRT_ConditionsSvc*>(this);
65  addRef();
66  } else if ( ITRT_ConditionsTestSvc::interfaceID() == riid ) {
67  ATH_MSG_DEBUG("TRT_ConditionsTestSvc interface queried as ITRT_ConditionsTestSvc.");
68  *ppvInterface = dynamic_cast<ITRT_ConditionsTestSvc*>(this);
69  addRef();
70  } else {
71  ATH_MSG_DEBUG("TRT_ConditionsTestSvc interface queried as Service.");
72  return AthService::queryInterface( riid, ppvInterface );
73  }
74  return StatusCode::SUCCESS;
75 }
76 
78  ATH_MSG_INFO("Hello World! From TRT_ConditionsTestSvc.");
79  return StatusCode::SUCCESS;
80 }
81 
82 #endif // TRT_CONDITIONSTESTSVC_H
ITRT_ConditionsSvc::interfaceID
static const InterfaceID & interfaceID()
Definition: ITRT_ConditionsSvc.h:45
TRT_ConditionsTestSvc::~TRT_ConditionsTestSvc
virtual ~TRT_ConditionsTestSvc()
Destructor //.
TRT_ConditionsTestSvc::TRT_ConditionsTestSvc
TRT_ConditionsTestSvc(const std::string &name, ISvcLocator *pSvcLocator)
Constructor //.
Definition: TRT_ConditionsTestSvc.cxx:17
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
TRT_ConditionsTestSvc::test
StatusCode test(const Identifier &)
Test Method.
Definition: TRT_ConditionsTestSvc.h:77
TRT_ConditionsTestSvc
Definition: TRT_ConditionsTestSvc.h:22
ITRT_ConditionsSvc.h
TRT_ConditionsTestSvc::finalize
virtual StatusCode finalize()
Finalize //.
Definition: TRT_ConditionsTestSvc.cxx:48
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthService
Definition: AthService.h:32
TRT_ConditionsTestSvc::queryInterface
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
Query Interface.
Definition: TRT_ConditionsTestSvc.h:61
ITRT_ConditionsSvc
Definition: ITRT_ConditionsSvc.h:34
TRT_ConditionsTestSvc::initialize
virtual StatusCode initialize()
Initialize //.
Definition: TRT_ConditionsTestSvc.cxx:31
TRT_ConditionsTestSvc::condSummaryStatus
InDet::TRT_CondFlag condSummaryStatus(const Identifier &)
Evaluation for TRT_ConditionsSummarySvc.
Definition: TRT_ConditionsTestSvc.cxx:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
ITRT_ConditionsTestSvc::interfaceID
static const InterfaceID & interfaceID()
Interface ID.
Definition: ITRT_ConditionsTestSvc.h:34
ITRT_ConditionsTestSvc
Definition: ITRT_ConditionsTestSvc.h:18
ITRT_ConditionsTestSvc.h
AthService.h
InDet::TRT_CondFlag
TRT_CondFlag
status flag to be derived from the inheriting tool's conditions info
Definition: ITRT_ConditionsSvc.h:19