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:
Definition at line 34 of file mrptEvent.h.
#include <mrpt/utils/mrptEvent.h>
Public Member Functions | |
mrptEvent () | |
Default ctor. | |
template<class EVENTTYPE > | |
bool | isOfType () const |
template<class EVENTTYPE > | |
const EVENTTYPE * | getAs () const |
template<class EVENTTYPE > | |
EVENTTYPE * | getAsNonConst () const |
Public Attributes | |
mrpt::system::TTimeStamp | timestamp |
Protected Member Functions | |
virtual void | do_nothing () |
Just to allow this class to be polymorphic. | |
|
inline |
Default ctor.
Definition at line 40 of file mrptEvent.h.
|
inlineprotectedvirtual |
Just to allow this class to be polymorphic.
Reimplemented in mrpt::utils::mrptEventOnDestroy, mrpt::gui::mrptEventWindowChar, mrpt::gui::mrptEventWindowResize, mrpt::gui::mrptEventMouseDown, mrpt::gui::mrptEventWindowClosed, mrpt::gui::mrptEvent3DWindowGrabImageFile, mrpt::maps::mrptEventMetricMapClear, mrpt::maps::mrptEventMetricMapInsert, mrpt::opengl::mrptEventGLPreRender, and mrpt::opengl::mrptEventGLPostRender.
Definition at line 37 of file mrptEvent.h.
|
inline |
Definition at line 46 of file mrptEvent.h.
|
inline |
Definition at line 49 of file mrptEvent.h.
|
inline |
Definition at line 43 of file mrptEvent.h.
mrpt::system::TTimeStamp mrpt::utils::mrptEvent::timestamp |
Definition at line 51 of file mrptEvent.h.
Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Mar 22 06:08:57 UTC 2023 |