![]() |
ATLAS Offline Software
|
a service used to unit test AnaToolHandle More...
#include <UnitTestService1.h>
Public Member Functions | |
UnitTestService1 (const std::string &name, ISvcLocator *pSvcLocator) | |
standard constructor More... | |
~UnitTestService1 () | |
standard destructor More... | |
StatusCode | initialize () override |
set up/tear down functions More... | |
virtual std::string | getPropertyString () const override |
get the integer property More... | |
virtual int | getPropertyInt () const override |
get the integer property More... | |
virtual void | setPropertyInt (int val_property) override |
get the integer property More... | |
virtual bool | isInitialized () const override |
get whether we have been initialized More... | |
DeclareInterfaceID (asg::IUnitTestService1, 1, 0) | |
declare the interface that this class provides More... | |
virtual void | print () const =0 |
Print the state of the service. More... | |
virtual void | print () const |
Print the state of the service. More... | |
template<typename T > | |
void | declareServiceInterface () |
add the given interface to the list of interfaces More... | |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvi) |
query interface for gaudi More... | |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
virtual StatusCode | finalize () |
virtual StatusCode | finalize () |
virtual StatusCode | finalize () |
Static Public Member Functions | |
static int & | instance_counts (const std::string &name) |
the number of times the service of the given name has been instantiated More... | |
Public Attributes | |
bool | m_isInitialized = false |
whether initialize has been called More... | |
std::string | m_propertyString |
the string property More... | |
int | m_propertyInt = -7 |
the integer property More... | |
bool | m_initializeFail = false |
whether initialize should fail More... | |
Private Attributes | |
std::vector< std::pair< const InterfaceID &(*)(), void *(*)(AsgService *)> > | m_interfaces |
list of interfaces we have More... | |
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.
asg::UnitTestService1::UnitTestService1 | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
asg::UnitTestService1::~UnitTestService1 | ( | ) |
|
inherited |
declare the interface that this class provides
|
inherited |
add the given interface to the list of interfaces
Definition at line 76 of file AsgService.h.
|
virtualinherited |
Reimplemented in TrackAnalysisDefinitionSvc, CP::SystematicsSvc, PlotsDefinitionSvc, and AthOnnx::OnnxRuntimeSvc.
Definition at line 40 of file AsgService.cxx.
|
overridevirtual |
get the integer property
Implements asg::IUnitTestService1.
Definition at line 86 of file UnitTestService1.cxx.
|
overridevirtual |
get the integer property
Implements asg::IUnitTestService1.
Definition at line 78 of file UnitTestService1.cxx.
|
overridevirtual |
set up/tear down functions
Reimplemented from asg::AsgService.
Definition at line 55 of file UnitTestService1.cxx.
|
static |
the number of times the service of the given name has been instantiated
Definition at line 110 of file UnitTestService1.cxx.
|
overridevirtual |
get whether we have been initialized
Implements asg::IUnitTestService1.
Definition at line 102 of file UnitTestService1.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
virtualinherited |
Print the state of the service.
Implements asg::IAsgService.
Definition at line 48 of file AsgService.cxx.
|
pure virtualinherited |
Print the state of the service.
Implemented in asg::AsgService.
|
virtualinherited |
|
overridevirtual |
get the integer property
Implements asg::IUnitTestService1.
Definition at line 94 of file UnitTestService1.cxx.
bool asg::UnitTestService1::m_initializeFail = false |
whether initialize should fail
Definition at line 65 of file UnitTestService1.h.
|
privateinherited |
list of interfaces we have
Definition at line 68 of file AsgService.h.
bool asg::UnitTestService1::m_isInitialized = false |
whether initialize has been called
Definition at line 53 of file UnitTestService1.h.
int asg::UnitTestService1::m_propertyInt = -7 |
the integer property
Definition at line 61 of file UnitTestService1.h.
std::string asg::UnitTestService1::m_propertyString |
the string property
Definition at line 57 of file UnitTestService1.h.