The Gaudi Framework
master (ff829712)
Loading...
Searching...
No Matches
IMyTool.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 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
#pragma once
12
13
// Include files
14
#include <
GaudiKernel/IAlgTool.h
>
15
21
class
IMyTool
:
virtual
public
IAlgTool
{
22
public
:
24
DeclareInterfaceID
(
IMyTool
, 2, 0 );
25
27
virtual
const
std::string&
message
()
const
= 0;
29
virtual
void
doIt
()
const
= 0;
30
};
31
38
class
IMyOtherTool
:
virtual
public
IAlgTool
{
39
public
:
41
DeclareInterfaceID
(
IMyOtherTool
, 2, 0 );
42
44
virtual
void
doItAgain
()
const
= 0;
45
};
46
48
class
IWrongTool
:
virtual
public
IAlgTool
{
49
public
:
51
DeclareInterfaceID
(
IWrongTool
, 1, 0 );
52
};
IAlgTool.h
IAlgTool
The interface implemented by the AlgTool base class.
Definition
IAlgTool.h:29
IMyOtherTool
Second interface, to test multiple interface tools.
Definition
IMyTool.h:38
IMyOtherTool::doItAgain
virtual void doItAgain() const =0
Do something else.
IMyOtherTool::DeclareInterfaceID
DeclareInterfaceID(IMyOtherTool, 2, 0)
InterfaceID.
IMyTool
Example of an Interface of a Algorithm Tool.
Definition
IMyTool.h:21
IMyTool::doIt
virtual void doIt() const =0
Do something.
IMyTool::message
virtual const std::string & message() const =0
Get a message.
IMyTool::DeclareInterfaceID
DeclareInterfaceID(IMyTool, 2, 0)
InterfaceID.
IWrongTool
Interface (not implemented) to test attempts to retrieval of wrong interface.
Definition
IMyTool.h:48
IWrongTool::DeclareInterfaceID
DeclareInterfaceID(IWrongTool, 1, 0)
InterfaceID.
GaudiTestSuite
src
AlgTools
IMyTool.h
Generated on Fri Sep 26 2025 11:24:28 for The Gaudi Framework by
1.13.1