Inherit from this class to get notified about events from any CObservable object after subscribing to it.
The main methods in this class are:
Note that if custom (child) mrptEvent classes are used, you can tell between them in runtime with "dynamic_cast<>()".
|void||observeBegin (CObservable &obj)|
|Starts the subscription of this observer to the given object. More...|
|void||observeEnd (CObservable &obj)|
|Ends the subscription of this observer to the given object (note that there is no need to call this method, since the destruction of the first of observer/observed will put an end to the process. More...|
|virtual void||OnEvent (const mrptEvent &e)=0|
|This virtual function will be called upon receive of any event after starting listening at any CObservable object. More...|
|void||internal_on_event (const mrptEvent &e)|
|std::set< CObservable * >||m_subscribed|
Starts the subscription of this observer to the given object.
Referenced by CGraphSlamHandler< GRAPH_T >::initVisualization().
|Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018|