ATLAS Offline Software
IUnitTestTool2.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 
9 #ifndef ASG_TOOLS__I_UNIT_TEST_TOOL2_H
10 #define ASG_TOOLS__I_UNIT_TEST_TOOL2_H
11 
12 #include <AsgTools/IAsgTool.h>
14 
15 namespace asg
16 {
17  class IUnitTestTool1;
18 
20 
21  class IUnitTestTool2 : virtual public IAsgTool
22  {
23  // Declare the interface that this class provides
24  ASG_TOOL_INTERFACE( CP::IUnitTestTool2 )
25 
26 
27  public:
28  virtual bool
29  toolHandleEmpty (const std::string& handleName) const = 0;
30 
32  public:
33  virtual const IUnitTestTool1 *
34  getToolHandle (const std::string& handleName) const = 0;
35 
37  public:
38  virtual StatusCode
39  retrieveToolHandle (const std::string& handleName) const = 0;
40 
42  public:
43  virtual bool
44  wasUserConfigured (const std::string& handleName) const = 0;
45 
47  public:
48  virtual const ToolHandleArray<IUnitTestTool1>&
49  getArray () const = 0;
50  };
51 }
52 
53 #endif
asg::IUnitTestTool2::retrieveToolHandle
virtual StatusCode retrieveToolHandle(const std::string &handleName) const =0
call retrieve on the regular ToolHandle
asg::IAsgTool
Base class for the dual-use tool interface classes.
Definition: IAsgTool.h:41
asg
Definition: DataHandleTestTool.h:28
asg::IUnitTestTool1
the interface for UnitTestTool1
Definition: IUnitTestTool1.h:19
asg::IUnitTestTool2::wasUserConfigured
virtual bool wasUserConfigured(const std::string &handleName) const =0
whether the AnaToolHandle was user configured
asg::IUnitTestTool2::getArray
virtual const ToolHandleArray< IUnitTestTool1 > & getArray() const =0
get the tool handle array
ToolHandleArray.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
asg::IUnitTestTool2
the interface for UnitTestTool2
Definition: IUnitTestTool2.h:22
ASG_TOOL_INTERFACE
#define ASG_TOOL_INTERFACE(CLASSNAME)
Definition: AsgToolMacros.h:40
IAsgTool.h
asg::IUnitTestTool2::toolHandleEmpty
virtual bool toolHandleEmpty(const std::string &handleName) const =0
whether the given ToolHandle is empty
asg::IUnitTestTool2::getToolHandle
virtual const IUnitTestTool1 * getToolHandle(const std::string &handleName) const =0
get the tool from the regular ToolHandle