DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SocketDataWriterConf.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _SocketDataWriterConf_0_dunedaq__appmodel_0_appmodel_H_
4#define _SocketDataWriterConf_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 ~SocketDataWriterConf() 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_template_for;
72
73
74 public:
75
76 // attribute names
77
78 inline static const std::string s_template_for = "template_for";
79
80 static const std::string& __get_template_for_str() noexcept { return s_template_for; }
81
82
90 const std::string&
92 {
93 std::lock_guard scoped_lock(m_mutex);
94 check();
95 check_init();
96 return m_template_for;
97 }
98
106 void
107 set_template_for(const std::string& value)
108 {
109 std::lock_guard scoped_lock(m_mutex);
110 check();
111 clear();
113 }
114
115
116 };
117
118 // out stream operator
119
120 inline std::ostream& operator<<(std::ostream& s, const SocketDataWriterConf& obj)
121 {
122 return obj.print_object(s);
123 }
124
125 typedef std::vector<const SocketDataWriterConf*>::const_iterator SocketDataWriterConfIterator;
126
127 }
128}
129
130#endif
const std::string & get_template_for() const
Get "template_for" attribute value. OKS class of the SocketDataWriterModule that this config is a tem...
virtual void init(bool init_children)
static const std::string & __get_template_for_str() noexcept
SocketDataWriterConf(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void set_template_for(const std::string &value)
Set "template_for" attribute value. OKS class of the SocketDataWriterModule that this config is a tem...
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_class(const std::string &name, const std::string &value)
Set attribute class 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< constSocketDataWriterConf * >::const_iterator SocketDataWriterConfIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.