The Gaudi Framework
master (37c0b60a)
IMyTool.h
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
\***********************************************************************************/
11
#ifndef GAUDIEXAMPLE_IMYTOOL_H
12
#define GAUDIEXAMPLE_IMYTOOL_H 1
13
14
// Include files
15
#include <
GaudiKernel/IAlgTool.h
>
16
22
class
IMyTool
:
virtual
public
IAlgTool
{
23
public
:
25
DeclareInterfaceID
(
IMyTool
, 2, 0 );
26
28
virtual
const
std::string
&
message
()
const
= 0;
30
virtual
void
doIt
()
const
= 0;
31
};
32
39
class
IMyOtherTool
:
virtual
public
IAlgTool
{
40
public
:
42
DeclareInterfaceID
(
IMyOtherTool
, 2, 0 );
43
45
virtual
void
doItAgain
()
const
= 0;
46
};
47
49
class
IWrongTool
:
virtual
public
IAlgTool
{
50
public
:
52
DeclareInterfaceID
(
IWrongTool
, 1, 0 );
53
};
54
55
#endif // GAUDIEXAMPLE_IMYTOOL_H
IMyOtherTool::doItAgain
virtual void doItAgain() const =0
Do something else.
IMyTool::message
virtual const std::string & message() const =0
Get a message.
IMyOtherTool
Definition:
IMyTool.h:39
IMyOtherTool::DeclareInterfaceID
DeclareInterfaceID(IMyOtherTool, 2, 0)
InterfaceID.
std::string
STL class.
IAlgTool
Definition:
IAlgTool.h:33
IMyTool::doIt
virtual void doIt() const =0
Do something.
IMyTool
Definition:
IMyTool.h:22
IWrongTool
Interface (not implemented) to test attempts to retrieval of wrong interface.
Definition:
IMyTool.h:49
IAlgTool.h
IMyTool::DeclareInterfaceID
DeclareInterfaceID(IMyTool, 2, 0)
InterfaceID.
IWrongTool::DeclareInterfaceID
DeclareInterfaceID(IWrongTool, 1, 0)
InterfaceID.
GaudiTestSuite
src
AlgTools
IMyTool.h
Generated on Thu Dec 19 2024 15:35:06 for The Gaudi Framework by
1.8.18