3#ifndef _CIBoardConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _CIBoardConf_0_dunedaq__appmodel_0_appmodel_H_
32#include "nlohmann/json.hpp"
53 virtual
void init(
bool init_children);
71 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
118 std::lock_guard scoped_lock(
m_mutex);
133 std::lock_guard scoped_lock(
m_mutex);
149 std::lock_guard scoped_lock(
m_mutex);
164 std::lock_guard scoped_lock(
m_mutex);
173 inline static const std::string
s_geo_id =
"geo_id";
187 std::lock_guard scoped_lock(
m_mutex);
192 std::ostringstream text;
193 text <<
"relationship \"" <<
s_geo_id <<
"\" of object " <<
this <<
" is not set";
225 return obj.print_object(s);
static const std::string & __get_receiver_port_str() noexcept
uint16_t get_receiver_port() const
Get "receiver_port" attribute value.
static const std::string s_geo_id
void set_geo_id(const dunedaq::confmodel::GeoId *value)
Set "geo_id" relationship value.
const dunedaq::confmodel::GeoId * m_geo_id
static const std::string s_receiver_port
std::string m_receiver_host
void set_receiver_port(uint16_t value)
Set "receiver_port" attribute value.
static const std::string & s_class_name
nlohmann::json get_cib_json(const dunedaq::confmodel::Session &session, std::optional< std::string > socket_host=std::nullopt, std::optional< uint16_t > socket_port=std::nullopt) const
void set_receiver_host(const std::string &value)
Set "receiver_host" attribute value.
static const std::string & __get_geo_id_str() noexcept
friend class conffwk::DalFactory
CIBoardConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
virtual ~CIBoardConf() 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...
const dunedaq::confmodel::GeoId * get_geo_id() const
Get "geo_id" relationship value.
const std::string & get_receiver_host() const
Get "receiver_host" attribute value.
friend class conffwk::DalObject
static const std::string & __get_receiver_host_str() noexcept
virtual void init(bool init_children)
static const std::string s_receiver_host
void set_by_val(const std::string &name, T value)
Set attribute value.
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::vector< constCIBoardConf * >::const_iterator CIBoardConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)