DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
DalFactoryFunctions.hpp
Go to the documentation of this file.
1#ifndef DAL_FACTORY_FUNCTIONS_H
2#define DAL_FACTORY_FUNCTIONS_H
3
4#include <set>
5#include <string>
6
7#include <boost/compute/functional/identity.hpp>
8
9namespace dunedaq {
10namespace conffwk {
11
12
13class Configuration;
14class ConfigObject;
15class ConfigurationChange;
16class DalObject;
17class CacheBase;
18
19
31typedef DalObject * (*dal_object_creator)(Configuration& db, ConfigObject& obj, const std::string& uid);
32
33
44typedef void (*notify2)(Configuration & conf, const ConfigurationChange * changed_class);
45
46
56typedef void (*unread_object)(CacheBase* x);
57
58
69typedef void (*rename_object_f)(CacheBase* x, const std::string& old_id, const std::string& new_id);
70
71
72
74{
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
Represents database objects.
Describes changes inside a class returned by the notification mechanism.
Definition Change.hpp:35
Defines base class for cache of template objects.
The base class for any generated DAL object.
Definition DalObject.hpp:45
void(* unread_object)(CacheBase *x)
The function to update states of objects in cache.
void(* notify2)(Configuration &conf, const ConfigurationChange *changed_class)
The notification callback function which is invoked by database implementation in case of changes.
void(* rename_object_f)(CacheBase *x, const std::string &old_id, const std::string &new_id)
The function to rename object in cache.
DalObject *(* dal_object_creator)(Configuration &db, ConfigObject &obj, const std::string &uid)
The factory function creates DAL object of given template class.
Including Qt Headers.
DalFactoryFunctions(boost::compute::identity< T >, const std::set< std::string > algorithms)