ATLAS Offline Software
Loading...
Searching...
No Matches
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
15namespace 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
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
the interface for UnitTestTool1
StatusCode initialize() override
Dummy implementation of the initialisation function.
bool m_initializeFail
whether initialize should fail
bool m_isInitialized
whether initialize has been called
std::string m_propertyString
the string property
UnitTestTool1A(const std::string &val_name)
standard constructor
virtual bool isInitialized() const override
get whether we have been initialized
virtual std::string getPropertyString() const override
get the integer property
virtual int getPropertyInt() const override
get the integer property
virtual void setPropertyInt(int val_property) override
get the integer property
int m_propertyInt
the integer property