The Gaudi Framework
master (6507eef1)
Toggle main menu visibility
Loading...
Searching...
No Matches
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 )
Algorithm.h
DECLARE_COMPONENT
#define DECLARE_COMPONENT(type)
Definition
PluginServiceV1.h:45
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
PluginServiceTest::MyAlg
Definition
BackwardCompatibleAliases.cpp:22
PluginServiceTest::MyAlg::execute
StatusCode execute() override
Definition
BackwardCompatibleAliases.cpp:26
PluginServiceTest::MyTemplatedAlg
Definition
BackwardCompatibleAliases.cpp:30
PluginServiceTest::MyTemplatedAlg::execute
StatusCode execute() override
Definition
BackwardCompatibleAliases.cpp:34
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition
StatusCode.h:99
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
GaudiTestSuite
src
PluginService
BackwardCompatibleAliases.cpp
Generated on
for The Gaudi Framework by
1.17.0