ATLAS Offline Software
UnitTestTool1A.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_TOOL1A_H
10 #define ASG_TOOLS__UNIT_TEST_TOOL1A_H
11 
12 #include <AsgTools/AsgTool.h>
14 
15 namespace asg
16 {
21 
22  struct UnitTestTool1A : virtual public IUnitTestTool1,
23  public AsgTool
24  {
26 
27 
28  public:
29  UnitTestTool1A (const std::string& val_name);
30 
31  public:
32  StatusCode initialize () override;
33 
34  public:
35  virtual std::string getPropertyString () const override;
36 
37  public:
38  virtual int getPropertyInt () const override;
39 
40  public:
41  virtual void setPropertyInt (int val_property) override;
42 
43  public:
44  virtual bool isInitialized () const override;
45 
47  public:
48  bool m_isInitialized = false;
49 
51  public:
52  std::string m_propertyString;
53 
55  public:
56  int m_propertyInt = -7;
57 
59  public:
60  bool m_initializeFail = false;
61  };
62 }
63 
64 #endif
asg::UnitTestTool1A::m_initializeFail
bool m_initializeFail
whether initialize should fail
Definition: UnitTestTool1A.h:60
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
asg::UnitTestTool1A::UnitTestTool1A
UnitTestTool1A(const std::string &val_name)
standard constructor
Definition: UnitTestTool1A.cxx:22
asg
Definition: DataHandleTestTool.h:28
asg::UnitTestTool1A::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: UnitTestTool1A.cxx:33
asg::IUnitTestTool1
the interface for UnitTestTool1
Definition: IUnitTestTool1.h:19
asg::UnitTestTool1A::getPropertyInt
virtual int getPropertyInt() const override
get the integer property
Definition: UnitTestTool1A.cxx:60
asg::UnitTestTool1A::isInitialized
virtual bool isInitialized() const override
get whether we have been initialized
Definition: UnitTestTool1A.cxx:76
asg::UnitTestTool1A::getPropertyString
virtual std::string getPropertyString() const override
get the integer property
Definition: UnitTestTool1A.cxx:52
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
asg::UnitTestTool1A
a tool used to unit test AnaToolHandle
Definition: UnitTestTool1A.h:24
IUnitTestTool1.h
asg::UnitTestTool1A::m_propertyInt
int m_propertyInt
the integer property
Definition: UnitTestTool1A.h:56
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
AsgTool.h
asg::UnitTestTool1A::m_propertyString
std::string m_propertyString
the string property
Definition: UnitTestTool1A.h:52
asg::UnitTestTool1A::m_isInitialized
bool m_isInitialized
whether initialize has been called
Definition: UnitTestTool1A.h:48
asg::UnitTestTool1A::setPropertyInt
virtual void setPropertyInt(int val_property) override
get the integer property
Definition: UnitTestTool1A.cxx:68