DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CTBCRTSubsystem.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _CTBCRTSubsystem_0_dunedaq__appmodel_0_appmodel_H_
4#define _CTBCRTSubsystem_0_dunedaq__appmodel_0_appmodel_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 // include files for classes used in inheritance hierarchy
17
19
20namespace dunedaq {
21 namespace appmodel {
22
24
25 friend class conffwk::Configuration;
26 friend class conffwk::DalObject;
27 friend class conffwk::DalFactory;
28 friend class conffwk::DalRegistry;
29
30 protected:
31
33 virtual ~CTBCRTSubsystem() noexcept;
34 virtual void init(bool init_children);
35
36 public:
37
40 static const std::string& s_class_name;
41
42
52 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
53
54
64 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
65
66
67 protected:
68
69 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
70
71
72 private:
73
74 bool m_pixelate;
75
76
77 public:
78
79 // attribute names
80
81 inline static const std::string s_pixelate = "pixelate";
82
83 static const std::string& __get_pixelate_str() noexcept { return s_pixelate; }
84
85
92 bool
94 {
95 std::lock_guard scoped_lock(m_mutex);
96 check();
97 check_init();
98 return m_pixelate;
99 }
100
107 void
108 set_pixelate(bool value)
109 {
110 std::lock_guard scoped_lock(m_mutex);
111 check();
112 clear();
114 }
115
116
117 };
118
119 // out stream operator
120
121 inline std::ostream& operator<<(std::ostream& s, const CTBCRTSubsystem& obj)
122 {
123 return obj.print_object(s);
124 }
125
126 typedef std::vector<const CTBCRTSubsystem*>::const_iterator CTBCRTSubsystemIterator;
127
128 }
129}
130
131#endif
virtual ~CTBCRTSubsystem() noexcept
static const std::string s_pixelate
bool get_pixelate() const
Get "pixelate" attribute value.
CTBCRTSubsystem(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_pixelate_str() 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...
void set_pixelate(bool value)
Set "pixelate" attribute value.
static const std::string & s_class_name
virtual void init(bool init_children)
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...
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constCTBCRTSubsystem * >::const_iterator CTBCRTSubsystemIterator
Including Qt Headers.