a service used to unit test AnaToolHandle
More...
#include <UnitTestService1.h>
|
| bool | m_isInitialized {false} |
| | whether initialize has been called
|
| Gaudi::Property< std::string > | m_propertyString {this, "propertyString", {}, "the string property"} |
| | the string property
|
| Gaudi::Property< int > | m_propertyInt {this, "propertyInt", -7, "the integer property"} |
| | the integer property
|
| Gaudi::Property< bool > | m_initializeFail {this, "initializeFail", false, "whether initialize should fail"} |
| | whether initialize should fail
|
a service used to unit test AnaToolHandle
This allows to unit test the various capabilities of AnaToolHandle in a controlled fashion.
Definition at line 23 of file UnitTestService1.h.
◆ UnitTestService1()
| asg::UnitTestService1::UnitTestService1 |
( |
const std::string & | name, |
|
|
ISvcLocator * | pSvcLocator ) |
standard constructor
Definition at line 22 of file UnitTestService1.cxx.
24 : base_class (name, pSvcLocator)
25 {
27 }
◆ ~UnitTestService1()
| asg::UnitTestService1::~UnitTestService1 |
( |
| ) |
|
◆ getPropertyInt()
| int asg::UnitTestService1::getPropertyInt |
( |
| ) |
const |
|
overridevirtual |
Definition at line 70 of file UnitTestService1.cxx.
72 {
74 }
Gaudi::Property< int > m_propertyInt
the integer property
◆ getPropertyString()
| std::string asg::UnitTestService1::getPropertyString |
( |
| ) |
const |
|
overridevirtual |
Definition at line 62 of file UnitTestService1.cxx.
64 {
66 }
Gaudi::Property< std::string > m_propertyString
the string property
◆ initialize()
| StatusCode asg::UnitTestService1::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 39 of file UnitTestService1.cxx.
41 {
45
47 {
49 return StatusCode::FAILURE;
50 }
52 {
54 return StatusCode::FAILURE;
55 }
57 return StatusCode::SUCCESS;
58 }
bool m_isInitialized
whether initialize has been called
Gaudi::Property< bool > m_initializeFail
whether initialize should fail
◆ isInitialized()
| bool asg::UnitTestService1::isInitialized |
( |
| ) |
const |
|
overridevirtual |
◆ setPropertyInt()
| void asg::UnitTestService1::setPropertyInt |
( |
int | val_property | ) |
|
|
overridevirtual |
◆ m_initializeFail
| Gaudi::Property<bool> asg::UnitTestService1::m_initializeFail {this, "initializeFail", false, "whether initialize should fail"} |
|
private |
whether initialize should fail
Definition at line 49 of file UnitTestService1.h.
49{this, "initializeFail", false, "whether initialize should fail"};
◆ m_isInitialized
| bool asg::UnitTestService1::m_isInitialized {false} |
|
private |
◆ m_propertyInt
| Gaudi::Property<int> asg::UnitTestService1::m_propertyInt {this, "propertyInt", -7, "the integer property"} |
|
private |
the integer property
Definition at line 46 of file UnitTestService1.h.
46{this, "propertyInt", -7, "the integer property"};
◆ m_propertyString
| Gaudi::Property<std::string> asg::UnitTestService1::m_propertyString {this, "propertyString", {}, "the string property"} |
|
private |
the string property
Definition at line 43 of file UnitTestService1.h.
43{this, "propertyString", {}, "the string property"};
The documentation for this struct was generated from the following files: