DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
FakeDataApplication.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _FakeDataApplication_0_dunedaq__appmodel_0_appmodel_H_
4#define _FakeDataApplication_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
20
21 // forward declaration for classes used in relationships and algorithms
22
23namespace dunedaq {
24 namespace confmodel {
25 class DaqModule;
26 class Session;
27 }
28}
29
30
31namespace dunedaq {
32 namespace appmodel {
33
35
36 friend class conffwk::Configuration;
37 friend class conffwk::DalObject;
38 friend class conffwk::DalFactory;
39 friend class conffwk::DalRegistry;
40
41 protected:
42
44 virtual ~FakeDataApplication() noexcept;
45 virtual void init(bool init_children);
46
47 public:
48
51 static const std::string& s_class_name;
52
53
63 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
64
65
75 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
76
77
78 protected:
79
80 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
81
82
83 private:
84
85 std::string m_application_name;
86
87
88 public:
89
90 // attribute names
91
92 inline static const std::string s_application_name = "application_name";
93
94 static const std::string& __get_application_name_str() noexcept { return s_application_name; }
95
96
103 const std::string&
105 {
106 std::lock_guard scoped_lock(m_mutex);
107 check();
108 check_init();
109 return m_application_name;
110 }
111
118 void
119 set_application_name(const std::string& value)
120 {
121 std::lock_guard scoped_lock(m_mutex);
122 check();
123 clear();
125 }
126
127
128
129 public:
130
131 // user-defined algorithms
132
137 std::vector<const dunedaq::confmodel::DaqModule*> generate_modules(const confmodel::Session*) const override;
138 };
139
140 // out stream operator
141
142 inline std::ostream& operator<<(std::ostream& s, const FakeDataApplication& obj)
143 {
144 return obj.print_object(s);
145 }
146
147 typedef std::vector<const FakeDataApplication*>::const_iterator FakeDataApplicationIterator;
148
149 }
150}
151
152#endif
void set_application_name(const std::string &value)
Set "application_name" attribute value.
const std::string & get_application_name() const
Get "application_name" attribute value.
static const std::string & __get_application_name_str() noexcept
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...
std::vector< const dunedaq::confmodel::DaqModule * > generate_modules(const confmodel::Session *) const override
virtual void init(bool init_children)
FakeDataApplication(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< constFakeDataApplication * >::const_iterator FakeDataApplicationIterator
Including Qt Headers.