3#ifndef _CTBSocket_0_dunedaq__appmodel_0_appmodel_H_
4#define _CTBSocket_0_dunedaq__appmodel_0_appmodel_H_
22#include "nlohmann/json.hpp"
39 virtual
void init(
bool init_children);
57 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
100 std::lock_guard scoped_lock(
m_mutex);
115 std::lock_guard scoped_lock(
m_mutex);
127 nlohmann::json
get_ctb_json( std::optional<std::string> socket_host = std::nullopt )
const;
134 return obj.print_object(s);
void set_host(const std::string &value)
Set "host" attribute value.
virtual ~CTBSocket() noexcept
nlohmann::json get_ctb_json(std::optional< std::string > socket_host=std::nullopt) const
static const std::string & __get_host_str() noexcept
static const std::string & s_class_name
const std::string & get_host() const
Get "host" attribute value.
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...
friend class conffwk::DalObject
static const std::string s_host
virtual void init(bool init_children)
CTBSocket(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
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...
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constCTBSocket * >::const_iterator CTBSocketIterator