TestTool.h
Go to the documentation of this file.
1 // TestTool.h
2 
3 // David Adams
4 // August 2017
5 //
6 // Example tool for testing.
7 //
8 // Configuration:
9 // Label: String associated with tool.
10 
11 #ifndef TestTool_H
12 #define TestTool_H
13 
14 #include "ITestTool.h"
16 #include "fhiclcpp/ParameterSet.h"
17 #include <iostream>
18 
19 class TestTool : public ITestTool {
20 
21 public:
22 
24 
25  ~TestTool() override;
26 
27  std::string mytype() const override { return "TestTool"; }
28 
29  std::string label() override { ++m_count; return m_Label; }
30 
31 private:
32 
33  // Configuration data.
35 
36  // Call count.
37  int m_count;
38 
39 };
40 
41 
42 #endif
std::string string
Definition: nybbler.cc:12
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 mytype() const override
Definition: TestTool.h:27
~TestTool() override
TestTool(fhicl::ParameterSet const &ps)
std::string m_Label
Definition: TestTool.h:34