#include <MuctpiXMLHelper.h>
|
| MuctpiXMLHelper () |
|
std::string | readAttribute (const boost::property_tree::ptree &tree, const std::string &attr) |
|
bool | hasAttribute (const boost::property_tree::ptree &tree, const std::string &attr) |
|
std::string | getAttribute (const boost::property_tree::ptree &tree, const std::string &attr) |
|
std::string | getAttribute (const boost::property_tree::ptree &tree, const std::string &attr, const std::string &defval) |
|
int | getIntAttribute (const boost::property_tree::ptree &tree, const std::string &attr) |
|
int | getIntAttribute (const boost::property_tree::ptree &tree, const std::string &attr, int defval) |
|
unsigned int | getUIntAttribute (const boost::property_tree::ptree &tree, const std::string &attr) |
|
unsigned int | getUIntAttribute (const boost::property_tree::ptree &tree, const std::string &attr, unsigned int &defval) |
|
float | getFloatAttribute (const boost::property_tree::ptree &tree, const std::string &attr) |
|
float | getFloatAttribute (const boost::property_tree::ptree &tree, const std::string &attr, float &defval) |
|
void | printAttributes (const boost::property_tree::ptree &tree) |
|
Definition at line 13 of file MuctpiXMLHelper.h.
◆ MuctpiXMLHelper()
MuctpiXMLHelper::MuctpiXMLHelper |
( |
| ) |
|
◆ getAttribute() [1/2]
◆ getAttribute() [2/2]
◆ getFloatAttribute() [1/2]
Definition at line 144 of file MuctpiXMLHelper.cxx.
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 <<
")");
◆ getFloatAttribute() [2/2]
Definition at line 160 of file MuctpiXMLHelper.cxx.
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 <<
")");
◆ getIntAttribute() [1/2]
Definition at line 85 of file MuctpiXMLHelper.cxx.
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 <<
"')");
◆ getIntAttribute() [2/2]
Definition at line 101 of file MuctpiXMLHelper.cxx.
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 <<
"')");
◆ getName()
const std::string & TrigConf::TrigConfMessaging::getName |
( |
| ) |
const |
|
inlineinherited |
◆ getUIntAttribute() [1/2]
Definition at line 115 of file MuctpiXMLHelper.cxx.
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 <<
")");
◆ getUIntAttribute() [2/2]
Definition at line 130 of file MuctpiXMLHelper.cxx.
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 <<
")");
◆ hasAttribute()
◆ msg() [1/2]
MsgStreamTC & TrigConf::TrigConfMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 86 of file TrigConfMessaging.h.
◆ msg() [2/2]
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 96 of file TrigConfMessaging.h.
◆ msgLvl()
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicting if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 75 of file TrigConfMessaging.h.
◆ printAttributes()
◆ readAttribute()
◆ m_msg_tls
boost::thread_specific_ptr<MsgStreamTC> TrigConf::TrigConfMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStreamTC instance (a std::cout like with print-out levels)
Definition at line 71 of file TrigConfMessaging.h.
◆ m_name
std::string TrigConf::TrigConfMessaging::m_name |
|
privateinherited |
The documentation for this class was generated from the following files: