9 #include <dqm/core/MonitoringObject.h>
11 #include <framework/utilities/KeyValuePrinter.h>
19 void MonitoringObject::print()
const
23 printVar.
put(
"Name", GetName());
24 for (
const auto& var : m_vars) {
25 printVar.
put(var.first, var.second);
27 for (
const auto& var : m_strVars) {
28 printVar.
put(var.first, var.second);
32 for (
const auto& canv : m_Canvases) {
33 printCanv.
put(canv->GetName(), canv->GetTitle());
36 std::cout <<
"=== MonitoringObject ===\n";
37 std::cout << printVar.
string();
38 std::cout <<
"\n List of canvases: \n";
39 std::cout << printCanv.
string();
40 std::cout <<
"========================\n";
create human-readable or JSON output for key value pairs.
void put(const std::string &key, const T &value)
Add one key-value pair.
std::string string() const
Return completed string.
Abstract base class for different kinds of events.