3#ifndef _Segment_0_dunedaq__confmodel_0_confmodel_H_
4#define _Segment_0_dunedaq__confmodel_0_confmodel_H_
48 virtual
void init(
bool init_children);
66 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
113 const std::vector<const dunedaq::confmodel::Segment*>&
116 std::lock_guard scoped_lock(
m_mutex);
131 set_segments(
const std::vector<const dunedaq::confmodel::Segment*>& value);
140 const std::vector<const dunedaq::confmodel::Application*>&
143 std::lock_guard scoped_lock(
m_mutex);
158 set_applications(
const std::vector<const dunedaq::confmodel::Application*>& value);
170 std::lock_guard scoped_lock(
m_mutex);
175 std::ostringstream text;
176 text <<
"relationship \"" <<
s_controller <<
"\" of object " <<
this <<
" is not set";
199 return obj.print_object(s);
The base class for any generated DAL object.
std::mutex m_mutex
Used to protect changes of DAL 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.
void set_controller(const dunedaq::confmodel::RCApplication *value)
Set "controller" relationship value. This Segment's run controller.
std::vector< const dunedaq::confmodel::Segment * > m_segments
virtual ~Segment() noexcept
const std::vector< const dunedaq::confmodel::Segment * > & get_segments() const
Get "segments" relationship value. Nested list of Segments that form part of this Segment.
static const std::string & __get_applications_str() noexcept
const std::vector< const dunedaq::confmodel::Application * > & get_applications() const
Get "applications" relationship value. List of Applications that run in this Segment.
static const std::string s_controller
Segment(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
virtual void init(bool init_children)
friend class conffwk::DalFactory
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...
const dunedaq::confmodel::RCApplication * get_controller() const
Get "controller" relationship value. This Segment's run controller.
void set_segments(const std::vector< const dunedaq::confmodel::Segment * > &value)
Set "segments" relationship value. Nested list of Segments that form part of this Segment.
static const std::string & s_class_name
friend class conffwk::DalObject
const dunedaq::confmodel::RCApplication * m_controller
static const std::string s_segments
static const std::string s_applications
static const std::string & __get_controller_str() noexcept
static const std::string & __get_segments_str() noexcept
std::vector< const dunedaq::confmodel::Application * > m_applications
void set_applications(const std::vector< const dunedaq::confmodel::Application * > &value)
Set "applications" relationship value. List of Applications that run in this Segment.
std::vector< constSegment * >::const_iterator SegmentIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)