The Gaudi Framework
v36r7 (7f57a304)
ServiceA.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#include "
ServiceA.h
"
12
13
// Static Factory declaration
14
DECLARE_COMPONENT
(
ServiceA
)
15
16
StatusCode
ServiceA
::initialize() {
17
Service::initialize
().
ignore
();
18
IService
* pService =
nullptr
;
19
const
bool
CREATENOW(
true
);
20
return
service(
"ServiceB"
, pService, CREATENOW );
21
}
IService
Definition:
IService.h:28
Service::initialize
StatusCode initialize() override
Definition:
Service.cpp:118
StatusCode
Definition:
StatusCode.h:65
ServiceA.h
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition:
StatusCode.h:139
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition:
PluginServiceV1.h:46
ServiceA
Definition:
ServiceA.h:16
GaudiExamples
src
SvcInitLoop
ServiceA.cpp
Generated on Fri Jul 29 2022 20:50:41 for The Gaudi Framework by
1.8.18