The Gaudi Framework
master (37c0b60a)
BackwardCompatibleAliases.cpp
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2024 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
\***********************************************************************************/
15
16
#include <
GaudiKernel/Algorithm.h
>
17
18
#include <string>
19
#include <vector>
20
21
namespace
PluginServiceTest
{
22
class
MyAlg
:
public
Algorithm
{
23
public
:
24
using
Algorithm::Algorithm
;
25
26
StatusCode
execute
()
override
{
return
StatusCode::SUCCESS
; }
27
};
28
29
template
<
class
T1,
class
T2>
30
class
MyTemplatedAlg
:
public
Algorithm
{
31
public
:
32
using
Algorithm::Algorithm
;
33
34
StatusCode
execute
()
override
{
return
StatusCode::SUCCESS
; }
35
};
36
}
// namespace PluginServiceTest
37
38
DECLARE_COMPONENT
(
PluginServiceTest::MyAlg
)
39
namespace
{
40
typedef
PluginServiceTest::MyTemplatedAlg<int&, double*>
_dummy;
41
}
42
DECLARE_COMPONENT
( _dummy )
PluginServiceTest::MyAlg::execute
StatusCode execute() override
Definition:
BackwardCompatibleAliases.cpp:26
PluginServiceTest
Test file used to check if the new Plugin Service is able to handle the strings used in the old one.
Definition:
BackwardCompatibleAliases.cpp:21
Algorithm
Alias for backward compatibility.
Definition:
Algorithm.h:58
Algorithm.h
StatusCode
Definition:
StatusCode.h:65
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition:
StatusCode.h:100
PluginServiceTest::MyTemplatedAlg::execute
StatusCode execute() override
Definition:
BackwardCompatibleAliases.cpp:34
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition:
PluginServiceV1.h:46
PluginServiceTest::MyTemplatedAlg
Definition:
BackwardCompatibleAliases.cpp:30
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition:
Algorithm.h:101
PluginServiceTest::MyAlg
Definition:
BackwardCompatibleAliases.cpp:22
GaudiTestSuite
src
PluginService
BackwardCompatibleAliases.cpp
Generated on Thu Dec 19 2024 15:35:07 for The Gaudi Framework by
1.8.18