The basic event type for the observer-observable pattern in MRPT.
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...
void internal_observer_begin(CObserver *)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
bool hasSubscribers() const
Can be called by a derived class before preparing an event for publishing with publishEvent to determ...
void internal_observer_end(CObserver *)
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.
std::set< CObserver * > m_subscribers
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |