3#ifndef _DetectorStream_0_dunedaq__confmodel_0_confmodel_H_
4#define _DetectorStream_0_dunedaq__confmodel_0_confmodel_H_
43 virtual
void init(
bool init_children);
61 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
105 std::lock_guard scoped_lock(
m_mutex);
120 std::lock_guard scoped_lock(
m_mutex);
129 inline static const std::string
s_geo_id =
"geo_id";
143 std::lock_guard scoped_lock(
m_mutex);
148 std::ostringstream text;
149 text <<
"relationship \"" <<
s_geo_id <<
"\" of object " <<
this <<
" is not set";
171 return obj.print_object(s);
void set_by_val(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.
const dunedaq::confmodel::GeoId * get_geo_id() const
Get "geo_id" relationship value.
uint32_t get_source_id() const
Get "source_id" attribute value.
DetectorStream(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const dunedaq::confmodel::GeoId * m_geo_id
virtual ~DetectorStream() noexcept
void set_geo_id(const dunedaq::confmodel::GeoId *value)
Set "geo_id" relationship value.
static const std::string & s_class_name
friend class conffwk::DalFactory
static const std::string & __get_source_id_str() noexcept
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...
friend class conffwk::DalObject
static const std::string s_source_id
static const std::string s_geo_id
static const std::string & __get_geo_id_str() noexcept
void set_source_id(uint32_t value)
Set "source_id" attribute value.
virtual void init(bool init_children)
std::vector< constDetectorStream * >::const_iterator DetectorStreamIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)