1#ifndef DAL_FACTORY_FUNCTIONS_H
2#define DAL_FACTORY_FUNCTIONS_H
7#include <boost/compute/functional/identity.hpp>
15class ConfigurationChange;
69typedef void (*
rename_object_f)(CacheBase* x,
const std::string& old_id,
const std::string& new_id);
Represents database objects.
Describes changes inside a class returned by the notification mechanism.
Defines base class for cache of template objects.
The base class for any generated DAL object.
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.
std::set< std::string > m_algorithms
DalFactoryFunctions(boost::compute::identity< T >, const std::set< std::string > algorithms)
rename_object_f m_rename_object_fn
dal_object_creator m_creator_fn
unread_object m_unread_object_fn