class mrpt::system::CObservableΒΆ

Inherit from this class for those objects capable of being observed by a CObserver class.

The only thing to do in your child class is to call CObservable::publishEvent() whenever needed and all the observer classes will be notified.

The pairs CObservable / CObserver automatically notify each other the destruction of any of them, effectively ending the subscription of events.

See also:

CObserver, mrptEvent

#include <mrpt/system/CObservable.h>

class CObservable
{
};

// direct descendants

class CBaseGUIWindow;
class CMetricMap;
class COpenGLViewport;