DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CTBTrigger.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _CTBTrigger_0_dunedaq__appmodel_0_appmodel_H_
4#define _CTBTrigger_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
20
21 // forward declaration for classes used in relationships and algorithms
22
23namespace dunedaq {
24 namespace confmodel {
25 class Session;
26 }
27}
28
29
30 // prologue of method CTBTrigger::get_ctb_json()
31
32#include "nlohmann/json.hpp"
33
34namespace dunedaq {
35 namespace appmodel {
36
38
39 friend class conffwk::Configuration;
40 friend class conffwk::DalObject;
41 friend class conffwk::DalFactory;
42 friend class conffwk::DalRegistry;
43
44 protected:
45
47 virtual ~CTBTrigger() noexcept;
48 virtual void init(bool init_children);
49
50 public:
51
54 static const std::string& s_class_name;
55
56
66 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
67
68
78 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
79
80
81 protected:
82
83 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
84
85
86 private:
87
88 std::string m_description;
89
90
91 public:
92
93 // attribute names
94
95 inline static const std::string s_description = "description";
96
97 static const std::string& __get_description_str() noexcept { return s_description; }
98
99
106 const std::string&
108 {
109 std::lock_guard scoped_lock(m_mutex);
110 check();
111 check_init();
112 return m_description;
113 }
114
121 void
122 set_description(const std::string& value)
123 {
124 std::lock_guard scoped_lock(m_mutex);
125 check();
126 clear();
128 }
129
130
131
132 public:
133
134 // user-defined algorithms
135
141 };
142
143 // out stream operator
144
145 inline std::ostream& operator<<(std::ostream& s, const CTBTrigger& obj)
146 {
147 return obj.print_object(s);
148 }
149
150 typedef std::vector<const CTBTrigger*>::const_iterator CTBTriggerIterator;
151
152 }
153}
154
155#endif
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...
virtual void init(bool init_children)
nlohmann::json get_ctb_json(const dunedaq::confmodel::Session &session) const
static const std::string & s_class_name
void set_description(const std::string &value)
Set "description" attribute value.
CTBTrigger(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
friend class conffwk::DalFactory
virtual ~CTBTrigger() noexcept
const std::string & get_description() const
Get "description" attribute value.
friend class conffwk::DalObject
static const std::string & __get_description_str() noexcept
static const std::string s_description
void set_by_ref(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::vector< constCTBTrigger * >::const_iterator CTBTriggerIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.