ATLAS Offline Software
UnitTestTool.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 EVENT_LOOP_TEST__UNIT_TEST_TOOL1_H
10 #define EVENT_LOOP_TEST__UNIT_TEST_TOOL1_H
11 
12 #include <AsgTools/AsgTool.h>
14 
15 namespace EL
16 {
21 
22  struct UnitTestTool : virtual public IUnitTestTool,
23  public asg::AsgTool
24  {
26 
27 
28  public:
29  UnitTestTool (const std::string& val_name);
30 
32  public:
33  ~UnitTestTool ();
34 
35  public:
36  ::StatusCode initialize () override;
37 
38  public:
39  virtual int getPropertyInt () const override;
40 
41  public:
42  virtual const IUnitTestTool *getSubtool () const override;
43 
44 
46  public:
47  ToolHandle<IUnitTestTool> m_subtool;
48 
50  public:
51  int m_propertyInt = 0;
52  };
53 }
54 
55 #endif
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
EL::UnitTestTool::initialize
::StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: UnitTestTool.cxx:42
EL::UnitTestTool
a tool used to unit test AnaToolHandle
Definition: UnitTestTool.h:24
EL::IUnitTestTool
the interface for UnitTestTool
Definition: IUnitTestTool.h:20
EL::UnitTestTool::getPropertyInt
virtual int getPropertyInt() const override
get the integer property
Definition: UnitTestTool.cxx:50
IUnitTestTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
EL::UnitTestTool::m_propertyInt
int m_propertyInt
the integer property
Definition: UnitTestTool.h:51
EL::UnitTestTool::getSubtool
virtual const IUnitTestTool * getSubtool() const override
get the subtool property
Definition: UnitTestTool.cxx:58
EL::UnitTestTool::m_subtool
ToolHandle< IUnitTestTool > m_subtool
the toolhandle for subtools
Definition: UnitTestTool.h:47
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
EL::UnitTestTool::UnitTestTool
UnitTestTool(const std::string &val_name)
standard constructor
Definition: UnitTestTool.cxx:25
EL::UnitTestTool::~UnitTestTool
~UnitTestTool()
standard destructor
Definition: UnitTestTool.cxx:35
AsgTool.h