TestTool_tool.cc
Go to the documentation of this file.
1 // TestTool_tool.cc
2 
3 #include "TestTool.h"
4 #include <iostream>
5 #include <fstream>
6 #include <sstream>
7 #include <iomanip>
8 
9 using std::string;
10 using std::cout;
11 using std::endl;
12 using std::ofstream;
13 using std::ostream;
14 using std::ostringstream;
15 using std::setw;
16 using std::fixed;
17 using std::setprecision;
18 
19 using Index = unsigned int;
20 
21 //**********************************************************************
22 // Class methods.
23 //**********************************************************************
24 
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 }
31 
32 //**********************************************************************
33 
35  const string myname = "TestTool::dtor: ";
36  cout << myname << "Deleting \"" << label() << "\" at @" << this << endl;
37 }
38 
39 //**********************************************************************
40 
#define DEFINE_ART_CLASS_TOOL(tool)
Definition: ToolMacros.h:42
std::string string
Definition: nybbler.cc:12
unsigned int Index
std::string label() override
Definition: TestTool.h:29
Q_EXPORT QTSManip setprecision(int p)
Definition: qtextstream.h:343
static constexpr double ps
Definition: Units.h:99
Q_EXPORT QTSManip setw(int w)
Definition: qtextstream.h:331
~TestTool() override
TestTool(fhicl::ParameterSet const &ps)
auto const & get(AssnsNode< L, R, D > const &r)
Definition: AssnsNode.h:115
QTextStream & endl(QTextStream &s)