ATLAS Offline Software
Public Member Functions | List of all members
asg::AsgService Class Reference

Base class for the dual-use service implementation classes. More...

#include <AsgService.h>

Inheritance diagram for asg::AsgService:
Collaboration diagram for asg::AsgService:

Public Member Functions

 AsgService (const std::string &name, ISvcLocator *pSvcLocator)
 
virtual void print () const
 Print the state of the service. More...
 
virtual StatusCode initialize ()
 set up/tear down functions More...
 
virtual StatusCode finalize ()
 

Detailed Description

Base class for the dual-use service implementation classes.

This class can be used like AthService can be used for Athena-only services.

Loosely based on the AsgTool implementation.

Definition at line 41 of file AsgService.h.

Constructor & Destructor Documentation

◆ AsgService()

asg::AsgService::AsgService ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 18 of file AsgService.cxx.

22  : base_class(name, pSvcLocator)
23 #else
24  : base_class(name)
25 #endif
26  {
27  (void) pSvcLocator; // suppress compiler warning in XAOD_STANDALONE
28  }

Member Function Documentation

◆ finalize()

StatusCode asg::AsgService::finalize ( )
virtual

Definition at line 38 of file AsgService.cxx.

40  {
41  return StatusCode::SUCCESS;
42  }

◆ initialize()

StatusCode asg::AsgService::initialize ( )
virtual

set up/tear down functions

Definition at line 30 of file AsgService.cxx.

32  {
33  return StatusCode::SUCCESS;
34  }

◆ print()

void asg::AsgService::print ( ) const
virtual

Print the state of the service.

Definition at line 46 of file AsgService.cxx.

47  {
48  ATH_MSG_INFO( "AsgService " << name() << " @ " << this );
49  return;
50  }

The documentation for this class was generated from the following files:
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228