The basic event type for the observer-observable pattern in MRPT.
You can sub-class this base class to create custom event types, then tell between them in runtime with isOfType<T>(), for example:
if (e.isOfType<mrptEventOnDestroy>()) { const mrptEventOnDestroy* ev = e.getAs<mrptEventOnDestroy>(); ev-> ... }
#include <mrpt/utils/mrptEvent.h>

Public Member Functions | |
| mrptEvent () | |
| Default ctor. | |
| template<class EVENTTYPE > | |
| bool | isOfType () const |
| template<class EVENTTYPE > | |
| const EVENTTYPE * | getAs () const |
Public Attributes | |
| mrpt::system::TTimeStamp | timestamp |
Protected Member Functions | |
| virtual void | do_nothing () |
| Just to allow this class to be polymorphic. | |
| mrpt::utils::mrptEvent::mrptEvent | ( | ) | [inline] |
Default ctor.
Definition at line 60 of file mrptEvent.h.
| virtual void mrpt::utils::mrptEvent::do_nothing | ( | ) | [inline, protected, virtual] |
Just to allow this class to be polymorphic.
Reimplemented in mrpt::opengl::mrptEventGLPostRender, mrpt::gui::mrptEvent3DWindowGrabImageFile, mrpt::opengl::mrptEventGLPreRender, mrpt::gui::mrptEventMouseDown, mrpt::gui::mrptEventWindowResize, mrpt::gui::mrptEventWindowChar, mrpt::utils::mrptEventOnDestroy, mrpt::slam::mrptEventMetricMapInsert, and mrpt::slam::mrptEventMetricMapClear.
Definition at line 57 of file mrptEvent.h.
| const EVENTTYPE* mrpt::utils::mrptEvent::getAs | ( | ) | const [inline] |
Definition at line 66 of file mrptEvent.h.
| bool mrpt::utils::mrptEvent::isOfType | ( | ) | const [inline] |
Definition at line 63 of file mrptEvent.h.
Definition at line 68 of file mrptEvent.h.
| Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011 |