DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TimingMasterEndpointScanPayload.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _TimingMasterEndpointScanPayload_0_dunedaq__timinglibs__dal_0_timinglibs_dal_H_
4#define _TimingMasterEndpointScanPayload_0_dunedaq__timinglibs__dal_0_timinglibs_dal_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 timinglibs {
19 namespace dal {
20
21 class TimingMasterEndpointScanPayload : public virtual dunedaq::conffwk::DalObject {
22
24 friend class conffwk::DalObject;
25 friend class conffwk::DalFactory;
27
28 protected:
29
31 virtual ~TimingMasterEndpointScanPayload() noexcept;
32 virtual void init(bool init_children);
33
34 public:
35
38 static const std::string& s_class_name;
39
40
50 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
51
52
62 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
63
64
65 protected:
66
67 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
68
69
70 private:
71
73
74
75 public:
76
77 // attribute names
78
79 inline static const std::string s_endpoints = "endpoints";
80
81 static const std::string& __get_endpoints_str() noexcept { return s_endpoints; }
82
83
90 const std::string&
92 {
93 std::lock_guard scoped_lock(m_mutex);
94 check();
95 check_init();
96 return m_endpoints;
97 }
98
105 void
106 set_endpoints(const std::string& value)
107 {
108 std::lock_guard scoped_lock(m_mutex);
109 check();
110 clear();
112 }
113
114
115 };
116
117 // out stream operator
118
119 inline std::ostream& operator<<(std::ostream& s, const TimingMasterEndpointScanPayload& obj)
120 {
121 return obj.print_object(s);
122 }
123
124 typedef std::vector<const TimingMasterEndpointScanPayload*>::const_iterator TimingMasterEndpointScanPayloadIterator;
125
126 }
127 }
128}
129
130#endif
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...
void set_endpoints(const std::string &value)
Set "endpoints" attribute value.
TimingMasterEndpointScanPayload(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const std::string & get_endpoints() const
Get "endpoints" attribute value.
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...
conffwk entry point
double offset
std::vector< constTimingMasterEndpointScanPayload * >::const_iterator TimingMasterEndpointScanPayloadIterator
std::ostream & operator<<(std::ostream &s, const EndpointLocation &obj)
Including Qt Headers.