asg::UnitTestTool1 Struct Reference

a tool used to unit test AnaToolHandle More...

#include <UnitTestTool1.h>

Inheritance diagram for asg::UnitTestTool1:
asg::IUnitTestTool1 asg::AsgTool asg::IAsgTool asg::IAsgTool

List of all members.

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

Detailed Description

a tool used to unit test AnaToolHandle

This allows to unit test the various capabilities of AnaToolHandle in a controlled fashion.


Member Function Documentation

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.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1