24 #ifndef OBSERVABLE_EVT_H
25 #define OBSERVABLE_EVT_H
39 ObservedEvt(wxEventType commandType = obsNOTIFY,
int id = 0)
40 : wxCommandEvent(commandType, id) {}
43 this->m_shared_ptr =
event.m_shared_ptr;
46 wxEvent* Clone()
const {
return new ObservedEvt(*
this); }
48 std::shared_ptr<const void> GetSharedPtr()
const {
return m_shared_ptr; }
50 void SetSharedPtr(std::shared_ptr<const void> p) { m_shared_ptr = p; }
53 std::shared_ptr<const void> m_shared_ptr;
Adds a std::shared<void> element to wxCommandEvent.