25#ifndef PDI_CALLBACKS_H_ 
   26#define PDI_CALLBACKS_H_ 
   33#include "pdi/pdi_fwd.h" 
   34#include "pdi/ref_any.h" 
   48    std::list<std::function<void()>> m_init_callbacks;
 
   55    std::list<std::function<void(
const std::string&, 
Ref)>> m_data_callbacks;
 
   62    std::multimap<std::string, std::function<void(
const std::string&, 
Ref)>> m_named_data_callbacks;
 
   69    std::list<std::function<void(
const std::string&, 
Ref)>> m_data_remove_callbacks;
 
   76    std::multimap<std::string, std::function<void(
const std::string&, 
Ref)>> m_named_data_remove_callbacks;
 
   83    std::list<std::function<void(
const std::string&)>> m_event_callbacks;
 
   90    std::multimap<std::string, std::function<void(
const std::string&)>> m_named_event_callbacks;
 
   97    std::list<std::function<void(
const std::string&)>> m_empty_desc_access_callbacks;
 
  104    std::multimap<std::string, std::function<void(
const std::string&)>> m_named_empty_desc_access_callbacks;
 
  124    std::function<void()> 
add_data_callback(
const std::function<
void(
const std::string&, 
Ref)>& callback, 
const std::string& name = {});
 
  142    std::function<void()> 
add_event_callback(
const std::function<
void(
const std::string&)>& callback, 
const std::string& name = {});
 
Definition: callbacks.h:39
 
std::function< void()> add_init_callback(const std::function< void()> &callback)
Adds new init callback to context.
 
std::function< void()> add_data_callback(const std::function< void(const std::string &, Ref)> &callback, const std::string &name={})
Adds new data callback to context.
 
std::function< void()> add_data_remove_callback(const std::function< void(const std::string &, Ref)> &callback, const std::string &name={})
Adds new data callback to context.
 
std::function< void()> add_event_callback(const std::function< void(const std::string &)> &callback, const std::string &name={})
Adds new event callback to context.
 
void call_data_remove_callbacks(const std::string &name, Ref ref) const
Calls data remove callbacks.
 
void call_empty_desc_access_callbacks(const std::string &name) const
Calls empty desc callbacks.
 
void call_event_callbacks(const std::string &name) const
Calls event callbacks.
 
void call_data_callbacks(const std::string &name, Ref ref) const
Calls data callbacks.
 
std::function< void()> add_empty_desc_access_callback(const std::function< void(const std::string &)> &callback, const std::string &name={})
Adds new empty desc access callback to context.
 
void call_init_callbacks() const
Calls init callbacks.
 
A dynamically typed reference to data with automatic memory management and read/write locking semanti...
Definition: ref_any.h:248
 
Definition: array_datatype.h:38