3#ifndef _Variable_0_dunedaq__confmodel_0_confmodel_H_
4#define _Variable_0_dunedaq__confmodel_0_confmodel_H_
38 virtual
void init(
bool init_children);
56 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
86 inline static const
std::
string s_name = "name";
87 inline static const
std::
string s_value = "value";
103 std::lock_guard scoped_lock(
m_mutex);
119 std::lock_guard scoped_lock(
m_mutex);
136 std::lock_guard scoped_lock(
m_mutex);
152 std::lock_guard scoped_lock(
m_mutex);
163 inline std::ostream&
operator<<(std::ostream& s,
const Variable& obj)
165 return obj.print_object(s);
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...
const std::string & get_name() const
Get "name" attribute value. Name of the variable.
static const std::string & __get_name_str() noexcept
void set_name(const std::string &value)
Set "name" attribute value. Name of the variable.
virtual void init(bool init_children)
friend class conffwk::DalFactory
const std::string & get_value() const
Get "value" attribute value. Value of the variable.
friend class conffwk::DalObject
static const std::string s_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_value(const std::string &value)
Set "value" attribute value. Value of the variable.
static const std::string & s_class_name
virtual ~Variable() noexcept
Variable(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string s_name
static const std::string & __get_value_str() noexcept
std::vector< constVariable * >::const_iterator VariableIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)