3#ifndef _DaphneMapEntry_0_dunedaq__appmodel_0_appmodel_H_
4#define _DaphneMapEntry_0_dunedaq__appmodel_0_appmodel_H_
21 class DaphneV2BoardConf;
40 virtual
void init(
bool init_children);
58 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
88 inline static const
std::
string s_key = "key";
103 std::lock_guard scoped_lock(
m_mutex);
119 std::lock_guard scoped_lock(
m_mutex);
128 inline static const std::string
s_conf =
"conf";
142 std::lock_guard scoped_lock(
m_mutex);
147 std::ostringstream text;
148 text <<
"relationship \"" <<
s_conf <<
"\" of object " <<
this <<
" is not set";
170 return obj.print_object(s);
const dunedaq::appmodel::DaphneV2BoardConf * get_conf() const
Get "conf" relationship value.
const std::string & get_key() const
Get "key" attribute value. Id of the board in the form of {det_id},{crate_id},{slot_id}...
void set_conf(const dunedaq::appmodel::DaphneV2BoardConf *value)
Set "conf" relationship value.
virtual void init(bool init_children)
static const std::string & s_class_name
static const std::string s_conf
friend class conffwk::DalFactory
DaphneMapEntry(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
virtual ~DaphneMapEntry() noexcept
static const std::string & __get_conf_str() noexcept
void set_key(const std::string &value)
Set "key" attribute value. Id of the board in the form of {det_id},{crate_id},{slot_id}...
friend class conffwk::DalObject
const dunedaq::appmodel::DaphneV2BoardConf * m_conf
static const std::string s_key
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 & __get_key_str() noexcept
void set_by_ref(const std::string &name, T &value)
Set attribute value.
The base class for any generated DAL object.
std::mutex m_mutex
Used to protect changes of DAL object.
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...
Generic configuration exception.
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constDaphneMapEntry * >::const_iterator DaphneMapEntryIterator