Public Member Functions | Private Attributes | List of all members
TestTool Class Reference

#include <TestTool.h>

Inheritance diagram for TestTool:
ITestTool

Public Member Functions

 TestTool (fhicl::ParameterSet const &ps)
 
 ~TestTool () override
 
std::string mytype () const override
 
std::string label () override
 
- Public Member Functions inherited from ITestTool
virtual ~ITestTool ()=default
 

Private Attributes

std::string m_Label
 
int m_count
 

Detailed Description

Definition at line 19 of file TestTool.h.

Constructor & Destructor Documentation

TestTool::TestTool ( fhicl::ParameterSet const &  ps)

Definition at line 25 of file TestTool_tool.cc.

26 : m_Label(ps.get<string>("Label")),
27  m_count(0) {
28  const string myname = "TestTool::ctor: ";
29  cout << myname << "Creating \"" << label() << "\" at @" << this << endl;
30 }
int m_count
Definition: TestTool.h:37
std::string label() override
Definition: TestTool.h:29
static constexpr double ps
Definition: Units.h:99
std::string m_Label
Definition: TestTool.h:34
QTextStream & endl(QTextStream &s)
TestTool::~TestTool ( )
override

Definition at line 34 of file TestTool_tool.cc.

34  {
35  const string myname = "TestTool::dtor: ";
36  cout << myname << "Deleting \"" << label() << "\" at @" << this << endl;
37 }
std::string label() override
Definition: TestTool.h:29
QTextStream & endl(QTextStream &s)

Member Function Documentation

std::string TestTool::label ( )
inlineoverridevirtual

Implements ITestTool.

Definition at line 29 of file TestTool.h.

29 { ++m_count; return m_Label; }
int m_count
Definition: TestTool.h:37
std::string m_Label
Definition: TestTool.h:34
std::string TestTool::mytype ( ) const
inlineoverridevirtual

Reimplemented from ITestTool.

Definition at line 27 of file TestTool.h.

27 { return "TestTool"; }

Member Data Documentation

int TestTool::m_count
private

Definition at line 37 of file TestTool.h.

std::string TestTool::m_Label
private

Definition at line 34 of file TestTool.h.


The documentation for this class was generated from the following files: