The Gaudi Framework  v40r0 (475e45c1)
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:
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:
42 
44  virtual void doItAgain() const = 0;
45 };
46 
48 class IWrongTool : virtual public IAlgTool {
49 public:
52 };
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:38
IMyOtherTool::DeclareInterfaceID
DeclareInterfaceID(IMyOtherTool, 2, 0)
InterfaceID.
IAlgTool
Definition: IAlgTool.h:29
IMyTool::doIt
virtual void doIt() const =0
Do something.
IMyTool
Definition: IMyTool.h:21
IWrongTool
Interface (not implemented) to test attempts to retrieval of wrong interface.
Definition: IMyTool.h:48
IAlgTool.h
IMyTool::DeclareInterfaceID
DeclareInterfaceID(IMyTool, 2, 0)
InterfaceID.
IWrongTool::DeclareInterfaceID
DeclareInterfaceID(IWrongTool, 1, 0)
InterfaceID.