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;
117 std::function<void()> add_init_callback(
const std::function<
void()>& callback);
126 std::function<void()> add_data_callback(
const std::function<
void(
const std::string&,
Ref)>& callback,
const std::string& name = {});
135 std::function<void()> add_data_remove_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 = {});
153 std::function<void()> add_empty_desc_access_callback(
const std::function<
void(
const std::string&)>& callback,
const std::string& name = {});
156 void call_init_callbacks()
const;
162 void call_data_callbacks(
const std::string& name,
Ref ref)
const;
168 void call_data_remove_callbacks(
const std::string& name,
Ref ref)
const;
173 void call_event_callbacks(
const std::string& name)
const;
178 void call_empty_desc_access_callbacks(
const std::string& name)
const;
185 #endif //PDI_CALLBACKS_H_
A dynamically typed reference to data with automatic memory management and read/write locking semanti...
Definition: pdi_fwd.h:85
Definition: callbacks.h:38
Definition: array_datatype.h:37