ATLAS Offline Software
Loading...
Searching...
No Matches
UnitTestTool2.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__UNIT_TEST_TOOL2_H
10#define ASG_TOOLS__UNIT_TEST_TOOL2_H
11
13#include <AsgTools/AsgTool.h>
15
16namespace asg
17{
22
23 struct UnitTestTool2 : virtual public IUnitTestTool2,
24 public AsgTool
25 {
27
28
29 public:
30 UnitTestTool2 (const std::string& val_name);
31
32 public:
33 StatusCode initialize () override;
34
35 public:
36 virtual bool
37 toolHandleEmpty (const std::string& handleName) const override;
38
39 public:
40 virtual const IUnitTestTool1 *
41 getToolHandle (const std::string& handleName) const override;
42
43 public:
44 virtual StatusCode
45 retrieveToolHandle (const std::string& handleName) const override;
46
47 public:
48 virtual bool
49 wasUserConfigured (const std::string& handleName) const override;
50
51 public:
52 virtual const ToolHandleArray<IUnitTestTool1>&
53 getArray () const override;
54
55 public:
56 ToolHandle<IUnitTestTool1> m_regPublicHandle;
57
58 public:
59 ToolHandle<IUnitTestTool1> m_regPrivateHandle;
60
61 public:
63
64 public:
66
67 public:
68 ToolHandleArray<IUnitTestTool1> m_regPrivateArray {
69 this, "regPrivateArray", {}, "array of private tools"};
70
71 private:
73
74 private:
76
77 private:
78 bool m_allowEmpty = false;
79 };
80}
81
82#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
a modified tool handle that allows its owner to configure new tools from the C++ side
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
the interface for UnitTestTool1
the interface for UnitTestTool2
virtual StatusCode retrieveToolHandle(const std::string &handleName) const override
call retrieve on the regular ToolHandle
virtual bool toolHandleEmpty(const std::string &handleName) const override
whether the given ToolHandle is empty
UnitTestTool2(const std::string &val_name)
standard constructor
ToolHandleArray< IUnitTestTool1 > m_regPrivateArray
virtual bool wasUserConfigured(const std::string &handleName) const override
whether the AnaToolHandle was user configured
virtual const ToolHandleArray< IUnitTestTool1 > & getArray() const override
get the tool handle array
ToolHandle< IUnitTestTool1 > m_regPublicHandle
virtual const IUnitTestTool1 * getToolHandle(const std::string &handleName) const override
get the tool from the regular ToolHandle
AnaToolHandle< IUnitTestTool1 > m_anaPublicHandle
AnaToolHandle< IUnitTestTool1 > m_anaPrivateHandle
StatusCode initialize() override
Dummy implementation of the initialisation function.
ToolHandle< IUnitTestTool1 > m_regPrivateHandle