Main MRPT website > C++ reference
MRPT logo

mrpt::utils::mrptEvent Class Reference

The basic event type for the observer-observable pattern in MRPT. More...

#include <mrpt/utils/mrptEvent.h>

Inheritance diagram for mrpt::utils::mrptEvent:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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>()) { ... }
See also:
CObserver, CObservable

Definition at line 49 of file mrptEvent.h.


Constructor & Destructor Documentation

mrpt::utils::mrptEvent::mrptEvent (  )  [inline]

Default ctor.

Definition at line 55 of file mrptEvent.h.


Member Function Documentation

virtual void mrpt::utils::mrptEvent::do_nothing (  )  [inline, protected, virtual]
template<class EVENTTYPE >
bool mrpt::utils::mrptEvent::isOfType (  )  const [inline]

Definition at line 58 of file mrptEvent.h.


Member Data Documentation

Definition at line 60 of file mrptEvent.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010