3#ifndef _DaphneV2ControllerModule_0_dunedaq__appmodel_0_appmodel_H_
4#define _DaphneV2ControllerModule_0_dunedaq__appmodel_0_appmodel_H_
25 class DaphneV2BoardConf;
48 virtual
void init(
bool init_children);
66 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
112 std::lock_guard scoped_lock(
m_mutex);
128 std::lock_guard scoped_lock(
m_mutex);
137 inline static const std::string
s_daphne_conf =
"daphne_conf";
138 inline static const std::string
s_board_conf =
"board_conf";
153 std::lock_guard scoped_lock(
m_mutex);
158 std::ostringstream text;
159 text <<
"relationship \"" <<
s_daphne_conf <<
"\" of object " <<
this <<
" is not set";
184 std::lock_guard scoped_lock(
m_mutex);
189 std::ostringstream text;
190 text <<
"relationship \"" <<
s_board_conf <<
"\" of object " <<
this <<
" is not set";
216 inline std::ostream&
operator<<(std::ostream& s,
const DaphneV2ControllerModule& obj)
218 return obj.print_object(s);
uint16_t get_slot_id() const
Get "slot_id" attribute value.
const dunedaq::appmodel::DaphneConf * get_daphne_conf() const
Get "daphne_conf" relationship value.
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...
void set_address(const std::string &value)
Set "address" attribute value. ip address of the board.
static const std::string & __get_board_conf_str() noexcept
const dunedaq::appmodel::DaphneV2BoardConf * get_board_conf() const
Get "board_conf" relationship value.
const std::string & get_address() const
Get "address" attribute value. ip address of the board.
static const std::string & s_class_name
virtual void init(bool init_children)
static const std::string s_daphne_conf
virtual ~DaphneV2ControllerModule() noexcept
friend class conffwk::DalFactory
DaphneV2ControllerModule(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const dunedaq::appmodel::DaphneV2BoardConf * m_board_conf
static const std::string & __get_daphne_conf_str() noexcept
static const std::string s_address
static const std::string & __get_address_str() noexcept
void set_daphne_conf(const dunedaq::appmodel::DaphneConf *value)
Set "daphne_conf" relationship value.
static const std::string s_board_conf
friend class conffwk::DalObject
void set_board_conf(const dunedaq::appmodel::DaphneV2BoardConf *value)
Set "board_conf" relationship value.
const dunedaq::appmodel::DaphneConf * m_daphne_conf
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< constDaphneV2ControllerModule * >::const_iterator DaphneV2ControllerModuleIterator