#include <Event.h>
Base class for all events received by the objects. More...
Base class for all events received by the objects.
When created, the status is initialized as not handled. It is then propagated along the objects until it is handled.
Protected Attributes | |
bool | m_handled |
Static Protected Attributes | |
static size_t | s_lastEventTypeIndex = 0 |
storing the last given id More... | |
Public Member Functions | |
Event () | |
virtual | ~Event () |
void | setHandled () |
Tag the event as handled, i.e. the event needs not be propagated further. More... | |
bool | isHandled () const |
Returns true of the event has been handled. More... | |
virtual const char * | getClassName () const |
virtual size_t | getEventTypeIndex () const =0 |
Static Public Member Functions | |
static const char * | GetClassName () |
static size_t | getEventTypeCount () |
|
protected |
|
staticprotected |
storing the last given id
sofa::core::objectmodel::Event::Event | ( | ) |
|
virtual |
|
inlinestatic |
|
inlinevirtual |
|
inlinestatic |
|
pure virtual |
bool sofa::core::objectmodel::Event::isHandled | ( | ) | const |
Returns true of the event has been handled.
void sofa::core::objectmodel::Event::setHandled | ( | ) |
Tag the event as handled, i.e. the event needs not be propagated further.