a service used to unit test AnaToolHandle
More...
#include <UnitTestService1.h>
a service used to unit test AnaToolHandle
This allows to unit test the various capabilities of AnaToolHandle in a controlled fashion.
Definition at line 25 of file UnitTestService1.h.
◆ UnitTestService1()
asg::UnitTestService1::UnitTestService1 |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~UnitTestService1()
asg::UnitTestService1::~UnitTestService1 |
( |
| ) |
|
◆ getPropertyInt()
int asg::UnitTestService1::getPropertyInt |
( |
| ) |
const |
|
overridevirtual |
◆ getPropertyString()
std::string asg::UnitTestService1::getPropertyString |
( |
| ) |
const |
|
overridevirtual |
◆ initialize()
StatusCode asg::UnitTestService1::initialize |
( |
| ) |
|
|
override |
Definition at line 53 of file UnitTestService1.cxx.
63 return StatusCode::FAILURE;
68 return StatusCode::FAILURE;
71 return StatusCode::SUCCESS;
◆ instance_counts()
int & asg::UnitTestService1::instance_counts |
( |
const std::string & |
name | ) |
|
|
static |
the number of times the service of the given name has been instantiated
Definition at line 108 of file UnitTestService1.cxx.
111 static std::map<std::string,int> counts;
112 auto iter = counts.find (
name);
113 if (iter == counts.end())
114 iter = counts.insert (std::make_pair (
name, 0)).first;
115 assert (iter != counts.end());
◆ isInitialized()
bool asg::UnitTestService1::isInitialized |
( |
| ) |
const |
|
overridevirtual |
◆ setPropertyInt()
void asg::UnitTestService1::setPropertyInt |
( |
int |
val_property | ) |
|
|
overridevirtual |
◆ m_initializeFail
bool asg::UnitTestService1::m_initializeFail = false |
◆ m_isInitialized
bool asg::UnitTestService1::m_isInitialized = false |
◆ m_propertyInt
int asg::UnitTestService1::m_propertyInt = -7 |
◆ m_propertyString
std::string asg::UnitTestService1::m_propertyString |
The documentation for this struct was generated from the following files: