DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DataStoreConfTestDeriv.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _DataStoreConfTestDeriv_0_dunedaq__dfmodules_0_dfmodules_H_
4#define _DataStoreConfTestDeriv_0_dunedaq__dfmodules_0_dfmodules_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 dfmodules {
22
23 class DataStoreConfTestDeriv : public dunedaq::appmodel::DataStoreConf {
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 ~DataStoreConfTestDeriv() noexcept;
34 virtual void init(bool init_children);
35
36 public:
37
39
40 static const std::string& s_class_name;
41
42
51
52 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
53
54
63
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 int32_t m_derivval;
75
76
77 public:
78
79 // attribute names
80
81 inline static const std::string s_derivval = "derivval";
82
83 static const std::string& __get_derivval_str() noexcept { return s_derivval; }
84
85
92
93 int32_t
95 {
96 std::lock_guard scoped_lock(m_mutex);
97 check();
98 check_init();
99 return m_derivval;
100 }
101
108
109 void
110 set_derivval(int32_t value)
111 {
112 std::lock_guard scoped_lock(m_mutex);
113 check();
114 clear();
116 }
117
118
119 };
120
121 // out stream operator
122
123 inline std::ostream& operator<<(std::ostream& s, const DataStoreConfTestDeriv& obj)
124 {
125 return obj.print_object(s);
126 }
127
128 typedef std::vector<const DataStoreConfTestDeriv*>::const_iterator DataStoreConfTestDerivIterator;
129
130 }
131}
132
133#endif
void set_by_val(const std::string &name, T value)
Set attribute value.
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...
int32_t get_derivval() const
Get "derivval" attribute value. A value used simply to demonstrate how there can be a non-generic con...
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...
static const std::string & __get_derivval_str() noexcept
void set_derivval(int32_t value)
Set "derivval" attribute value. A value used simply to demonstrate how there can be a non-generic con...
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the DataStoreConfTestDeriv object.
DataStoreConfTestDeriv(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
conffwk entry point
double offset
An ERS Issue for DataStore creation failure.
Definition DataStore.hpp:91
std::vector< constDataStoreConfTestDeriv * >::const_iterator DataStoreConfTestDerivIterator
The DUNE-DAQ namespace.
msgpack::object obj
std::ostream & operator<<(std::ostream &s, const ConfigurationChange &c)