3#ifndef _CTBSockets_0_dunedaq__appmodel_0_appmodel_H_
4#define _CTBSockets_0_dunedaq__appmodel_0_appmodel_H_
21 class CTBMonitorSocket;
22 class CTBReceiverSocket;
23 class CTBStatisticsSocket;
30#include "nlohmann/json.hpp"
47 virtual
void init(
bool init_children);
65 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
114 std::lock_guard scoped_lock(
m_mutex);
119 std::ostringstream text;
120 text <<
"relationship \"" <<
s_receiver <<
"\" of object " <<
this <<
" is not set";
145 std::lock_guard scoped_lock(
m_mutex);
170 std::lock_guard scoped_lock(
m_mutex);
191 nlohmann::json
get_ctb_json(std::optional<std::string> socket_host = std::nullopt)
const;
198 return obj.print_object(s);
static const std::string s_monitor
static const std::string & __get_monitor_str() noexcept
static const std::string & s_class_name
static const std::string s_statistics
void set_monitor(const dunedaq::appmodel::CTBMonitorSocket *value)
Set "monitor" relationship value.
static const std::string & __get_receiver_str() noexcept
void set_receiver(const dunedaq::appmodel::CTBReceiverSocket *value)
Set "receiver" relationship value.
const dunedaq::appmodel::CTBStatisticsSocket * m_statistics
const dunedaq::appmodel::CTBReceiverSocket * get_receiver() const
Get "receiver" relationship value.
static const std::string & __get_statistics_str() noexcept
friend class conffwk::DalFactory
const dunedaq::appmodel::CTBStatisticsSocket * get_statistics() const
Get "statistics" relationship value.
static const std::string s_receiver
const dunedaq::appmodel::CTBReceiverSocket * m_receiver
void set_statistics(const dunedaq::appmodel::CTBStatisticsSocket *value)
Set "statistics" relationship value.
const dunedaq::appmodel::CTBMonitorSocket * m_monitor
CTBSockets(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
friend class conffwk::DalObject
virtual void init(bool init_children)
const dunedaq::appmodel::CTBMonitorSocket * get_monitor() const
Get "monitor" relationship value.
nlohmann::json get_ctb_json(std::optional< std::string > socket_host=std::nullopt) const
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...
virtual ~CTBSockets() noexcept
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.
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constCTBSockets * >::const_iterator CTBSocketsIterator