Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
TimerEvent Class ReferenceAdds a target field to EventBase so listeners can resolve source ID conflict between different behaviors. More...
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
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.
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.
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.
returns target Definition at line 27 of file TimerEvent.h.
assignment operator, does a shallow copy (copies pointer value, doesn't try to clone target!) Definition at line 21 of file TimerEvent.h.
assigns tgt to target Definition at line 28 of file TimerEvent.h. Member Data Documentation
causes class type id to automatically be regsitered with EventBase's FamilyFactory (getTypeRegistry()) Definition at line 42 of file TimerEvent.h. Referenced by getClassTypeID().
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(). The documentation for this class was generated from the following files: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:17 2016 by Doxygen 1.6.3 |