DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SNBBookkeeperApplication.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _SNBBookkeeperApplication_0_dunedaq__appmodel_0_appmodel_H_
4#define _SNBBookkeeperApplication_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
19
20 // forward declaration for classes used in relationships and algorithms
21
22namespace dunedaq {
23 namespace appmodel {
24 class SNBBookkeeperConf;
25 }
26 namespace confmodel {
27 class Session;
28 }
29}
30
31
32namespace dunedaq {
33 namespace appmodel {
34
35 class SNBBookkeeperApplication : public dunedaq::appmodel::SmartDaqApplication {
36
38 friend class conffwk::DalObject;
39 friend class conffwk::DalFactory;
41
42 protected:
43
45 virtual ~SNBBookkeeperApplication() noexcept;
46 virtual void init(bool init_children);
47
48 public:
49
52 static const std::string& s_class_name;
53
54
64 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
65
66
76 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
77
78
79 protected:
80
81 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
82
83
84 private:
85
87
88
89 public:
90
91 // relationship names
92
93 inline static const std::string s_snbbk = "snbbk";
94
95 static const std::string& __get_snbbk_str() noexcept { return s_snbbk; }
96
97
105 get_snbbk() const
106 {
107 std::lock_guard scoped_lock(m_mutex);
108 check();
109 check_init();
110 if (!m_snbbk)
111 {
112 std::ostringstream text;
113 text << "relationship \"" << s_snbbk << "\" of object " << this << " is not set";
114 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
115 }
116 return m_snbbk;
117 }
118
119
126 void
128
129
130 public:
131
132 // user-defined algorithms
133
138 void generate_modules(const confmodel::Session*) const override;
139 };
140
141 // out stream operator
142
143 inline std::ostream& operator<<(std::ostream& s, const SNBBookkeeperApplication& obj)
144 {
145 return obj.print_object(s);
146 }
147
148 typedef std::vector<const SNBBookkeeperApplication*>::const_iterator SNBBookkeeperApplicationIterator;
149
150 }
151}
152
153#endif
#define ERS_HERE
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 dunedaq::appmodel::SNBBookkeeperConf * get_snbbk() const
Get "snbbk" relationship value.
static const std::string & __get_snbbk_str() noexcept
SNBBookkeeperApplication(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
void generate_modules(const confmodel::Session *) const override
const dunedaq::appmodel::SNBBookkeeperConf * m_snbbk
void set_snbbk(const dunedaq::appmodel::SNBBookkeeperConf *value)
Set "snbbk" relationship value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
std::mutex m_mutex
Used to protect changes of DAL 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...
Generic configuration exception.
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constSNBBookkeeperApplication * >::const_iterator SNBBookkeeperApplicationIterator
The DUNE-DAQ namespace.
msgpack::object obj