Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
TimerEvent Class Reference#include <TimerEvent.h>
Inheritance diagram for TimerEvent:
![]() Detailed DescriptionAdds a target field to EventBase so listeners can resolve source ID conflict between different behaviors.See EventRouter's class documentation for discussion of how to request and use timers. Definition at line 12 of file TimerEvent.h.
Constructor & Destructor Documentation
empty constructor, initializes target to NULL
Definition at line 15 of file TimerEvent.h. Referenced by clone().
the full specification constructor, pass original requester tgt, generator gid (probably should always be EventBase::timerEGID), source sid, type tid (typically EventBase::statusETID), and duration dur
Definition at line 17 of file TimerEvent.h.
copy constructor, does a shallow copy (copies pointer value, doesn't try to clone target!)
Definition at line 19 of file TimerEvent.h.
Member Function Documentation
assignment operator, does a shallow copy (copies pointer value, doesn't try to clone target!)
Definition at line 21 of file TimerEvent.h.
allows a copy to be made of an event, supporting polymorphism Must be overridden by all subclasses to allow this to happen I would like to switch this over to the cloneable interface once the compiler gets updated out of the 3.3 branch... see Cloneable::clone() for a discussion of the issue and implementation notes. Reimplemented from EventBase. Definition at line 23 of file TimerEvent.h.
All subclasses should override this and return a unique ID for their class. All IDs corresponding to all-capital letters are reserved for future framework expansion. (Thus, user subclasses should contain at least one lower-case letter.) This code can be used when serializing to allow quick identification of the class type by the receiver. Reimplemented from EventBase. Definition at line 25 of file TimerEvent.h.
generates a description of the event with variable verbosity
Reimplemented from EventBase. Definition at line 11 of file TimerEvent.cc.
should return the minimum size needed if using binary format (i.e. not XML)
Reimplemented from EventBase. Definition at line 25 of file TimerEvent.cc.
Member Data Documentation
indicates the listener for which the timer was created
Definition at line 39 of file TimerEvent.h. Referenced by getBinSize(), getDescription(), getTarget(), loadBinaryBuffer(), loadXML(), operator=(), saveBinaryBuffer(), saveXML(), and setTarget().
causes class type id to automatically be regsitered with EventBase's FamilyFactory (getTypeRegistry())
Definition at line 42 of file TimerEvent.h. Referenced by getClassTypeID().
The documentation for this class was generated from the following files: |
Tekkotsu v4.0 |
Generated Thu Nov 22 00:58:44 2007 by Doxygen 1.5.4 |