#include <Event.h>
Inheritance diagram for gadget::Event:

Public Methods | |
| const EventType & | type () const |
| Returns the type of this event. More... | |
| void | setType (const EventType &type) |
| Set the type of this event. More... | |
| const unsigned long & | time () const |
| Returns the time at which the event occurred. More... | |
| virtual | ~Event () |
| virtual vpr::ReturnStatus | writeObject (vpr::ObjectWriter *writer) |
| virtual vpr::ReturnStatus | readObject (vpr::ObjectReader *reader) |
Protected Methods | |
| Event (const EventType &type, const unsigned long &time) | |
| Initializes data members. More... | |
Protected Attributes | |
| EventType | mType |
| The event type. More... | |
| unsigned long | mTime |
| Time at which the event occurred. More... | |
This class cannot be instantiated directly, and instead, subclasses must be used.
Definition at line 56 of file Event.h.
|
|
Definition at line 88 of file Event.h.
00089 {
00090 }
|
|
||||||||||||
|
Initializes data members.
Definition at line 107 of file Event.h. References gadget::EventType.
|
|
|
Returns the type of this event. This can be used for dynamic casting to more specific event types. Definition at line 63 of file Event.h. References gadget::EventType.
00064 {
00065 return mType;
00066 }
|
|
|
Set the type of this event. This is needed because while using an Object Reader to de-serialize an Event we can not set the type during construction. We must set the event type after creating this event using the EventFactory. This could later be removed if the EventFactory is chaged to take care of this. Definition at line 75 of file Event.h. References gadget::EventType.
|
|
|
Returns the time at which the event occurred.
Definition at line 83 of file Event.h.
00084 {
00085 return mTime;
00086 }
|
|
|
Reimplemented in gadget::KeyEvent. Definition at line 43 of file Event.cpp.
|
|
|
Reimplemented in gadget::KeyEvent. Definition at line 50 of file Event.cpp.
|
|
|
The event type.
Definition at line 112 of file Event.h. Referenced by readObject, gadget::MouseEvent::writeObject, gadget::KeyEvent::writeObject, and writeObject. |
|
|
Time at which the event occurred.
Definition at line 113 of file Event.h. Referenced by gadget::KeyEvent::readObject, readObject, gadget::KeyEvent::writeObject, and writeObject. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002