9#include <framework/dataobjects/EventExtraInfo.h>
10#include <framework/utilities/HTML.h>
19 else throw std::runtime_error(
"EventExtraInfo::getExtraInfo: You try to access the EventExtraInfo '" + name +
20 "', but it doesn't exist.");
37 throw std::out_of_range(std::string(
"Key with name ") + name +
" already exists in EventExtraInfo.");
51 s +=
HTML::escape(pair.first) +
" = " + std::to_string(pair.second) +
"<br />";
58 std::vector<std::string> out;
60 out.push_back(pair.first);
69 else throw std::runtime_error(
"EventExtraInfo::getExtraStringInfo: You try to access the EventExtraInfo '" + name +
70 "', but it doesn't exist.");
87 throw std::out_of_range(std::string(
"Key with name ") + name +
" already exists in EventExtraInfo.");
99 std::vector<std::string> out;
101 out.push_back(pair.first);
110 return std::string(
"");
std::string escape(const std::string &str)
Convert &, <, > etc.
Abstract base class for different kinds of events.