18 const std::string&
WIBSettings::s_class_name(dunedaq::conffwk::DalFactory::instance().get_known_class_name_ref(
"WIBSettings"));
26 dunedaq::conffwk::DalFactory::instance().register_dal_class<
WIBSettings>(
"WIBSettings");
39 m_coldadc_settings (
nullptr),
40 m_wib_pulser (
nullptr)
52 const std::string str(indent+2,
' ');
75 catch (dunedaq::conffwk::Exception & ex) {
99 catch (dunedaq::conffwk::Exception & ex) {
108 std::vector<const dunedaq::conffwk::DalObject *>
WIBSettings::get(
const std::string& name,
bool upcast_unregistered)
const
110 std::vector<const dunedaq::conffwk::DalObject *> vec;
112 if (!
get(name, vec, upcast_unregistered,
true))
118 bool WIBSettings::get(
const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec,
bool upcast_unregistered,
bool first_call)
const
122 std::lock_guard scoped_lock(
m_mutex);
static const std::string s_pulser
static const std::string s_cold
void set_femb1(const dunedaq::appmodel::FEMBSettings *value)
Set "femb1" relationship value. Settings for FEMB in slot 1.
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the WIBSettings object.
static const std::string s_detector_type
static const std::string s_coldadc_settings
virtual ~WIBSettings() noexcept
static const std::string s_femb2
static const std::string s_femb0
void set_femb0(const dunedaq::appmodel::FEMBSettings *value)
Set "femb0" relationship value. Settings for FEMB in slot 0.
static const std::string s_femb1
const dunedaq::appmodel::ColdADCSettings * m_coldadc_settings
static const std::string s_adc_test_pattern
const dunedaq::appmodel::FEMBSettings * m_femb0
static const std::string s_wib_pulser
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
static const std::string s_femb3
const dunedaq::appmodel::FEMBSettings * m_femb1
const dunedaq::appmodel::FEMBSettings * m_femb2
void set_wib_pulser(const dunedaq::appmodel::WIBPulserSettings *value)
Set "wib_pulser" relationship value. Settings for WIB pulser.
WIBSettings(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & s_class_name
const dunedaq::appmodel::WIBPulserSettings * m_wib_pulser
const dunedaq::appmodel::FEMBSettings * m_femb3
void set_femb2(const dunedaq::appmodel::FEMBSettings *value)
Set "femb2" relationship value. Settings for FEMB in slot 2.
void set_coldadc_settings(const dunedaq::appmodel::ColdADCSettings *value)
Set "coldadc_settings" relationship value. Custom register settings for ColdADC.
virtual void init(bool init_children)
void set_femb3(const dunedaq::appmodel::FEMBSettings *value)
Set "femb3" relationship value. Settings for FEMB in slot 3.
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
The base class for any generated DAL object.
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
void increment_read() noexcept
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
bool get_rel_objects(const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
Read relationship values as DAL objects using DAL factory.
static void throw_get_ex(const std::string &what, const std::string &class_name, const DalObject *obj)
throw exception in generated get method (i.e.
std::mutex m_mutex
Used to protect changes of DAL object.
void _set_object(const std::string &name, const T *value)
Helper method for generated set single-value relationship methods.
DalRegistry & p_registry
Configuration object.
bool p_was_read
is true, if the object was read
bool get_algo_objects(const std::string &name, std::vector< const DalObject * > &objs) const
Run algorithm and return result as DAL objects using DAL factory.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
const T * _ref(ConfigObject &obj, const std::string &name, bool read_children)
Get signle value of object's relation and instantiate result with it (multi-thread safe).
#define TLOG_DEBUG(lvl,...)
static struct dunedaq::appmodel::__AVXAbsRunSumProcessor_Registrator registrator
void p_sv_rel(std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj)
print weak single-value relationship
void p_sv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print single-value attribute
__WIBSettings_Registrator()