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
15
21class IMyTool : virtual public IAlgTool {
22public:
25
27 virtual const std::string& message() const = 0;
29 virtual void doIt() const = 0;
30};
31
38class IMyOtherTool : virtual public IAlgTool {
39public:
42
44 virtual void doItAgain() const = 0;
45};
46
48class IWrongTool : virtual public IAlgTool {
49public:
52};
The interface implemented by the AlgTool base class.
Definition IAlgTool.h:29
Second interface, to test multiple interface tools.
Definition IMyTool.h:38
virtual void doItAgain() const =0
Do something else.
DeclareInterfaceID(IMyOtherTool, 2, 0)
InterfaceID.
Example of an Interface of a Algorithm Tool.
Definition IMyTool.h:21
virtual void doIt() const =0
Do something.
virtual const std::string & message() const =0
Get a message.
DeclareInterfaceID(IMyTool, 2, 0)
InterfaceID.
Interface (not implemented) to test attempts to retrieval of wrong interface.
Definition IMyTool.h:48
DeclareInterfaceID(IWrongTool, 1, 0)
InterfaceID.