ATLAS Offline Software
AsgService.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 #ifndef ASGSERVICES_ASGSERVICE_H
9 #define ASGSERVICES_ASGSERVICE_H
10 
12 
13 #ifdef XAOD_STANDALONE
15 #include "AsgTools/AsgComponent.h"
16 #else
18 #endif
19 
20 #include <vector>
21 #include <utility>
22 
23 class ISvcLocator;
24 
25 namespace asg
26 {
27  // Declare the type name of AsgService's base class
28 #ifndef XAOD_STANDALONE
29  typedef ::AthService AsgServiceBase;
30 #else
31  typedef AsgComponent AsgServiceBase;
32 #endif
33 
40 
41  class AsgService :
42  public extends<AsgServiceBase, IAsgService>
43  {
44  public:
45  AsgService (const std::string& name,
46  ISvcLocator* pSvcLocator);
47 
50  virtual StatusCode initialize ();
51  virtual StatusCode finalize ();
53 
55  virtual void print() const;
56 
57  }; // class AsgService
58 
59 } // namespace asg
60 
61 #endif // ASGSERVICES_ASGSERVICE_H
asg::AsgService::finalize
virtual StatusCode finalize()
Definition: AsgService.cxx:39
asg
Definition: DataHandleTestTool.h:28
asg::AsgService::print
virtual void print() const
Print the state of the service.
Definition: AsgService.cxx:46
AsgMessaging.h
IAsgService.h
asg::AsgService
Base class for the dual-use service implementation classes.
Definition: AsgService.h:43
asg::AsgService::initialize
virtual StatusCode initialize()
set up/tear down functions
Definition: AsgService.cxx:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AsgComponent.h
AthService.h
asg::AsgService::AsgService
AsgService(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AsgService.cxx:19
asg::AsgServiceBase
::AthService AsgServiceBase
Definition: AsgService.h:29