void internal_observer_end(CObserver *)
std::set< CObserver * > m_subscribers
The basic event type for the observer-observable pattern in MRPT.
Inherit from this class to get notified about events from any CObservable object after subscribing to...
Inherit from this class for those objects capable of being observed by a CObserver class...
void internal_observer_begin(CObserver *)
bool hasSubscribers() const
Can be called by a derived class before preparing an event for publishing with publishEvent to determ...
void publishEvent(const mrptEvent &e) const
Called when you want this object to emit an event to all the observers currently subscribed to this o...