The basic event type for the observer-observable pattern in MRPT. More...
#include <mrpt/utils/mrptEvent.h>

Public Member Functions | |
| mrptEvent () | |
| Default ctor. | |
| template<class EVENTTYPE > | |
| bool | isOfType () const |
Public Attributes | |
| mrpt::system::TTimeStamp | timestamp |
Protected Member Functions | |
| virtual void | do_nothing () |
| Just to allow this class to be polymorphic. | |
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>()) { ... }
Definition at line 49 of file mrptEvent.h.
| mrpt::utils::mrptEvent::mrptEvent | ( | ) | [inline] |
Default ctor.
Definition at line 55 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::utils::mrptEventOnDestroy, mrpt::gui::mrptEventWindowChar, mrpt::gui::mrptEventWindowResize, mrpt::slam::mrptEventMetricMapClear, and mrpt::slam::mrptEventMetricMapInsert.
Definition at line 52 of file mrptEvent.h.
| bool mrpt::utils::mrptEvent::isOfType | ( | ) | const [inline] |
Definition at line 58 of file mrptEvent.h.
Definition at line 60 of file mrptEvent.h.
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |