DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
conffwk
include
conffwk
DalFactoryFunctions.hpp
Go to the documentation of this file.
1
//
2
// DUNE DAQ modification notice:
3
// This file has been modified from the original ATLAS config source for the DUNE DAQ project.
4
// Fork baseline commit: 67a24e731 (2022-10-27).
5
// Renamed since fork: yes (from config/DalFactoryFunctions.h to include/conffwk/DalFactoryFunctions.hpp).
6
//
7
8
#ifndef DAL_FACTORY_FUNCTIONS_H
9
#define DAL_FACTORY_FUNCTIONS_H
10
11
#include <set>
12
#include <string>
13
14
#include <boost/compute/functional/identity.hpp>
15
16
namespace
dunedaq
{
17
namespace
conffwk
{
18
19
20
class
Configuration
;
21
class
ConfigObject
;
22
class
ConfigurationChange
;
23
class
DalObject
;
24
class
CacheBase;
25
26
37
38
typedef
DalObject
* (*dal_object_creator)(
Configuration
& db,
ConfigObject
&
obj
,
const
std::string& uid);
39
40
50
51
typedef
void (*
notify2
)(
Configuration
& conf,
const
ConfigurationChange
* changed_class);
52
53
62
63
typedef
void (*
unread_object
)(CacheBase* x);
64
65
75
76
typedef
void (*
rename_object_f
)(CacheBase* x,
const
std::string& old_id,
const
std::string& new_id);
77
78
79
80
struct
DalFactoryFunctions
81
{
82
notify2
m_update_fn
;
83
unread_object
m_unread_object_fn
;
84
rename_object_f
m_rename_object_fn
;
85
dal_object_creator
m_creator_fn
;
86
87
std::set<std::string>
m_algorithms
;
88
89
template
<
class
T>
90
DalFactoryFunctions
(boost::compute::identity<T>,
const
std::set<std::string> algorithms);
91
};
92
}
// namespace conffwk
93
}
// namespace dunedaq
94
95
#endif
dunedaq::conffwk::ConfigObject
Represents database objects.
Definition
ConfigObject.hpp:53
dunedaq::conffwk::ConfigurationChange
Describes changes inside a class returned by the notification mechanism.
Definition
Change.hpp:42
dunedaq::conffwk::Configuration
Defines base class for cache of template objects.
Definition
Configuration.hpp:228
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:52
dunedaq::conffwk
Definition
Change.hpp:23
dunedaq::conffwk::unread_object
void(* unread_object)(CacheBase *x)
The function to update states of objects in cache.
Definition
DalFactoryFunctions.hpp:63
dunedaq::conffwk::notify2
void(* notify2)(Configuration &conf, const ConfigurationChange *changed_class)
The notification callback function which is invoked by database implementation in case of changes.
Definition
DalFactoryFunctions.hpp:51
dunedaq::conffwk::rename_object_f
void(* rename_object_f)(CacheBase *x, const std::string &old_id, const std::string &new_id)
The function to rename object in cache.
Definition
DalFactoryFunctions.hpp:76
dunedaq::conffwk::dal_object_creator
DalObject *(* dal_object_creator)(Configuration &db, ConfigObject &obj, const std::string &uid)
The factory function creates DAL object of given template class.
Definition
DalFactoryFunctions.hpp:38
dunedaq
Including Qt Headers.
Definition
module.cpp:16
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:257
dunedaq::conffwk::DalFactoryFunctions::m_algorithms
std::set< std::string > m_algorithms
Definition
DalFactoryFunctions.hpp:87
dunedaq::conffwk::DalFactoryFunctions::DalFactoryFunctions
DalFactoryFunctions(boost::compute::identity< T >, const std::set< std::string > algorithms)
dunedaq::conffwk::DalFactoryFunctions::m_rename_object_fn
rename_object_f m_rename_object_fn
Definition
DalFactoryFunctions.hpp:84
dunedaq::conffwk::DalFactoryFunctions::m_update_fn
notify2 m_update_fn
Definition
DalFactoryFunctions.hpp:82
dunedaq::conffwk::DalFactoryFunctions::m_creator_fn
dal_object_creator m_creator_fn
Definition
DalFactoryFunctions.hpp:85
dunedaq::conffwk::DalFactoryFunctions::m_unread_object_fn
unread_object m_unread_object_fn
Definition
DalFactoryFunctions.hpp:83
Generated on
for DUNE-DAQ by
1.17.0