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
class
Configuration
;
20
class
ConfigObject
;
21
class
ConfigurationChange
;
22
class
DalObject
;
23
class
CacheBase;
24
35
36
typedef
DalObject
* (*dal_object_creator)(
Configuration
& db,
ConfigObject
&
obj
,
const
std::string& uid);
37
47
48
typedef
void (*
notify2
)(
Configuration
& conf,
const
ConfigurationChange
* changed_class);
49
58
59
typedef
void (*
unread_object
)(CacheBase* x);
60
70
71
typedef
void (*
rename_object_f
)(CacheBase* x,
const
std::string& old_id,
const
std::string& new_id);
72
73
struct
DalFactoryFunctions
74
{
75
notify2
m_update_fn
;
76
unread_object
m_unread_object_fn
;
77
rename_object_f
m_rename_object_fn
;
78
dal_object_creator
m_creator_fn
;
79
80
std::set<std::string>
m_algorithms
;
81
82
template
<
class
T>
83
DalFactoryFunctions
(boost::compute::identity<T>,
const
std::set<std::string> algorithms);
84
};
85
}
// namespace conffwk
86
}
// namespace dunedaq
87
88
#endif
dunedaq::conffwk::ConfigObject
Represents database objects.
Definition
ConfigObject.hpp:54
dunedaq::conffwk::ConfigurationChange
Describes changes inside a class returned by the notification mechanism.
Definition
Change.hpp:43
dunedaq::conffwk::Configuration
Defines base class for cache of template objects.
Definition
Configuration.hpp:234
dunedaq::conffwk::DalObject
The base class for any generated DAL object.
Definition
DalObject.hpp:51
dunedaq::conffwk
Definition
test_circular_dependency.hpp:5
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:48
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:36
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:71
dunedaq::conffwk::unread_object
void(*) unread_object(CacheBase *x)
The function to update states of objects in cache.
Definition
DalFactoryFunctions.hpp:59
dunedaq
The DUNE-DAQ namespace.
Definition
cib_utilities.cpp:5
dunedaq::obj
msgpack::object obj
Definition
Serialization.hpp:252
dunedaq::conffwk::DalFactoryFunctions::m_algorithms
std::set< std::string > m_algorithms
Definition
DalFactoryFunctions.hpp:80
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:77
dunedaq::conffwk::DalFactoryFunctions::m_update_fn
notify2 m_update_fn
Definition
DalFactoryFunctions.hpp:75
dunedaq::conffwk::DalFactoryFunctions::m_creator_fn
dal_object_creator m_creator_fn
Definition
DalFactoryFunctions.hpp:78
dunedaq::conffwk::DalFactoryFunctions::m_unread_object_fn
unread_object m_unread_object_fn
Definition
DalFactoryFunctions.hpp:76
Generated on
for DUNE-DAQ by
1.18.0