13#include "GaudiKernel/GaudiException.h"
41 const std::string& key,
42 const std::string& val)
44 if (
m_map.contains(key)) {
45 error (context, key,
"Duplicate key");
60 const std::string& key)
const
62 Maptype::const_iterator i =
m_map.find (key);
63 if (i ==
m_map.end()) {
64 std::ostringstream
ss;
65 for (
const auto& p :
m_map) {
68 error (context, key,
"Can't find key in" +
ss.str());
94 m_map[key] = std::move (rep);
103 return m_map.contains(key);
115 const std::string& key,
116 const std::string&
msg)
118 throw GaudiException (
msg, context+
":"+key, StatusCode::FAILURE);
127 const std::string& name)
const
129 for (
const std::pair<const std::string, CxxUtils::Arrayrep>& p :
m_map) {
130 stream << name <<
"." << p.first <<
" = ";
131 p.second.write_array(stream);
143 std::ostringstream
ss;
Namespace for helper functions.
Representation class for Array's.