DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DaqModulesGroup.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _DaqModulesGroup_0_dunedaq__confmodel_0_confmodel_H_
4#define _DaqModulesGroup_0_dunedaq__confmodel_0_confmodel_H_
5
6#include <stdint.h> // to define 64 bits types
7#include <iostream>
8#include <sstream>
9#include <string>
10#include <map>
11#include <vector>
12
14#include "conffwk/DalObject.hpp"
15
16
17namespace dunedaq {
18 namespace confmodel {
19
24 class DaqModulesGroup : public virtual dunedaq::conffwk::DalObject {
25
27 friend class conffwk::DalObject;
28 friend class conffwk::DalFactory;
30
31 protected:
32
34 virtual ~DaqModulesGroup() noexcept;
35 virtual void init(bool init_children);
36
37 public:
38
41 static const std::string& s_class_name;
42
43
53 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
54
55
65 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
66
67
68 protected:
69
70 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
71
72
73 private:
74
76
77
78 public:
79
80 // attribute names
81
82 inline static const std::string s_optional = "optional";
83
84 static const std::string& __get_optional_str() noexcept { return s_optional; }
85
86
94 bool
96 {
97 std::lock_guard scoped_lock(m_mutex);
98 check();
99 check_init();
100 return m_optional;
101 }
102
110 void
111 set_optional(bool value)
112 {
113 std::lock_guard scoped_lock(m_mutex);
114 check();
115 clear();
117 }
118
119
120 };
121
122 // out stream operator
123
124 inline std::ostream& operator<<(std::ostream& s, const DaqModulesGroup& obj)
125 {
126 return obj.print_object(s);
127 }
128
129 typedef std::vector<const DaqModulesGroup*>::const_iterator DaqModulesGroupIterator;
130
131 }
132}
133
134#endif
void set_by_val(const std::string &name, T value)
Set attribute value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
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...
bool get_optional() const
Get "optional" attribute value. When true, the application will not generate a warning message if no ...
static const std::string & s_class_name
void set_optional(bool value)
Set "optional" attribute value. When true, the application will not generate a warning message if no ...
DaqModulesGroup(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_optional_str() noexcept
virtual void init(bool init_children)
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...
static const std::string s_optional
conffwk entry point
double offset
std::vector< constDaqModulesGroup * >::const_iterator DaqModulesGroupIterator
std::ostream & operator<<(std::ostream &s, const ActionPlan &obj)
The DUNE-DAQ namespace.
Definition DataStore.hpp:57
msgpack::object obj