DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DataMoveCallbackDescriptor.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _DataMoveCallbackDescriptor_0_dunedaq__appmodel_0_appmodel_H_
4#define _DataMoveCallbackDescriptor_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
17namespace dunedaq {
18 namespace appmodel {
19
21
22 friend class conffwk::Configuration;
23 friend class conffwk::DalObject;
24 friend class conffwk::DalFactory;
25 friend class conffwk::DalRegistry;
26
27 protected:
28
30 virtual ~DataMoveCallbackDescriptor() noexcept;
31 virtual void init(bool init_children);
32
33 public:
34
37 static const std::string& s_class_name;
38
39
49 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
50
51
61 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
62
63
64 protected:
65
66 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
67
68
69 private:
70
71 std::string m_uid_base;
72 std::string m_data_type;
73
74
75 public:
76
77 // attribute names
78
79 inline static const std::string s_uid_base = "uid_base";
80 inline static const std::string s_data_type = "data_type";
81
82 static const std::string& __get_uid_base_str() noexcept { return s_uid_base; }
83 static const std::string& __get_data_type_str() noexcept { return s_data_type; }
84
85
93 const std::string&
95 {
96 std::lock_guard scoped_lock(m_mutex);
97 check();
98 check_init();
99 return m_uid_base;
100 }
101
109 void
110 set_uid_base(const std::string& value)
111 {
112 std::lock_guard scoped_lock(m_mutex);
113 check();
114 clear();
116 }
117
118
126 const std::string&
128 {
129 std::lock_guard scoped_lock(m_mutex);
130 check();
131 check_init();
132 return m_data_type;
133 }
134
142 void
143 set_data_type(const std::string& value)
144 {
145 std::lock_guard scoped_lock(m_mutex);
146 check();
147 clear();
149 }
150
151
152 };
153
154 // out stream operator
155
156 inline std::ostream& operator<<(std::ostream& s, const DataMoveCallbackDescriptor& obj)
157 {
158 return obj.print_object(s);
159 }
160
161 typedef std::vector<const DataMoveCallbackDescriptor*>::const_iterator DataMoveCallbackDescriptorIterator;
162
163 }
164}
165
166#endif
void set_uid_base(const std::string &value)
Set "uid_base" attribute value. Base for callback UID string. May be combined with a source id.
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::string & get_uid_base() const
Get "uid_base" attribute value. Base for callback UID string. May be combined with a source id.
const std::string & get_data_type() const
Get "data_type" attribute value. string identifying type of data passed as a callback parameter.
void set_data_type(const std::string &value)
Set "data_type" attribute value. string identifying type of data passed as a callback parameter.
static const std::string & __get_uid_base_str() noexcept
static const std::string & __get_data_type_str() noexcept
DataMoveCallbackDescriptor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
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::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constDataMoveCallbackDescriptor * >::const_iterator DataMoveCallbackDescriptorIterator
Including Qt Headers.
msgpack::object obj