25#ifndef PDI_CALLBACKS_H_
26#define PDI_CALLBACKS_H_
33#include "pdi/pdi_fwd.h"
34#include "pdi/ref_any.h"
49 std::list<std::function<void()>> m_init_callbacks;
56 std::list<std::function<void(
const std::string&,
Ref)>> m_data_callbacks;
63 std::multimap<std::string, std::function<void(
const std::string&,
Ref)>> m_named_data_callbacks;
70 std::list<std::function<void(
const std::string&,
Ref)>> m_data_remove_callbacks;
77 std::multimap<std::string, std::function<void(
const std::string&,
Ref)>> m_named_data_remove_callbacks;
84 std::list<std::function<void(
const std::string&)>> m_event_callbacks;
91 std::multimap<std::string, std::function<void(
const std::string&)>> m_named_event_callbacks;
98 std::list<std::function<void(
const std::string&)>> m_empty_desc_access_callbacks;
105 std::multimap<std::string, std::function<void(
const std::string&)>> m_named_empty_desc_access_callbacks;
126 std::function<void()>
add_data_callback(
const std::function<
void(
const std::string&,
Ref)>& callback,
const std::string& name = {});
144 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:273
Definition: array_datatype.h:38