a tool used to unit test AnaToolHandle More...
#include <UnitTestTool1.h>
Public Member Functions | |
| UnitTestTool1 (const std::string &val_name) | |
| standard constructor | |
| ~UnitTestTool1 () | |
| standard destructor | |
| StatusCode | initialize () override |
| 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 | |
| virtual bool | isInitialized () const override |
| get whether we have been initialized | |
Static Public Member Functions | |
| static int & | instance_counts (const std::string &name) |
| the number of times the tool of the given name has been instantiated | |
Public Attributes | |
| bool | m_isInitialized = false |
| whether initialize has been called | |
| std::string | m_propertyString |
| the string property | |
| int | m_propertyInt = 0 |
| the integer property | |
| bool | m_initializeFail = false |
| whether initialize should fail | |
a tool used to unit test AnaToolHandle
This allows to unit test the various capabilities of AnaToolHandle in a controlled fashion.
| StatusCode asg::UnitTestTool1::initialize | ( | void | ) | [override, virtual] |
Dummy implementation of the initialisation function
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
1.6.1