3#ifndef _ProcessingResource_0_dunedaq__confmodel_0_confmodel_H_
4#define _ProcessingResource_0_dunedaq__confmodel_0_confmodel_H_
34 virtual
void init(
bool init_children);
52 virtual
void print(
unsigned int offset,
bool print_header,
std::ostream& s) const;
92 const std::vector<uint16_t>&
95 std::lock_guard scoped_lock(
m_mutex);
110 std::lock_guard scoped_lock(
m_mutex);
121 inline std::ostream&
operator<<(std::ostream& s,
const ProcessingResource& obj)
123 return obj.print_object(s);
void set_by_val(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...
static const std::string s_cpu_cores
void set_cpu_cores(const std::vector< uint16_t > &value)
Set "cpu_cores" attribute value.
std::vector< uint16_t > m_cpu_cores
virtual void init(bool init_children)
friend class conffwk::DalFactory
static const std::string & __get_cpu_cores_str() noexcept
friend class conffwk::DalObject
virtual ~ProcessingResource() 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 std::vector< uint16_t > & get_cpu_cores() const
Get "cpu_cores" attribute value.
static const std::string & s_class_name
ProcessingResource(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
std::vector< constProcessingResource * >::const_iterator ProcessingResourceIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)