14 TrigConf::TrigConfMessaging(
"MuctpiXML")
27 string attrVal =
a.second.data();
28 std::cout <<
attrName <<
" : " << attrVal << std::endl;
60 if(
a.first != attr)
continue;
61 return a.second.data();
93 auto [
ptr, ec] = std::from_chars(attr_value.data(), attr_value.data() + attr_value.size(), ret_value);
94 if (ec != std::errc()) {
95 TRG_MSG_ERROR(
"attribute '" << attr <<
"' is not an int (it is '" << attr_value <<
"')");
106 auto [
ptr, ec] = std::from_chars(attr_value.data(), attr_value.data() + attr_value.size(), ret_value);
107 if (ec != std::errc()) {
108 TRG_MSG_ERROR(
"attribute '" << attr <<
"' is not an int (it is '" << attr_value <<
"')");
120 unsigned int ret_value{0};
122 auto [
ptr, ec] = std::from_chars(attr_value.data(), attr_value.data() + attr_value.size(), ret_value);
123 if (ec != std::errc()) {
124 TRG_MSG_ERROR(
"attribute '" << attr <<
"' is not an unsigned int (it is " << attr_value <<
")");
133 unsigned int ret_value{0};
135 auto [
ptr, ec] = std::from_chars(attr_value.data(), attr_value.data() + attr_value.size(), ret_value);
136 if (ec != std::errc()) {
137 TRG_MSG_ERROR(
"attribute '" << attr <<
"' is not an unsigned int (it is " << attr_value <<
")");
151 auto [
ptr, ec] = std::from_chars(attr_value.data(), attr_value.data() + attr_value.size(), ret_value, std::chars_format::general);
152 if (ec != std::errc()) {
153 TRG_MSG_ERROR(
"attribute '" << attr <<
"' is not a float (it is " << attr_value <<
")");
165 auto [
ptr, ec] = std::from_chars(attr_value.data(), attr_value.data() + attr_value.size(), ret_value, std::chars_format::general);
166 if (ec != std::errc()) {
167 TRG_MSG_ERROR(
"attribute '" << attr <<
"' is not a float (it is " << attr_value <<
")");