Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
TextMsgTrans Class ReferenceFires when a matching string is received. More...
Inheritance diagram for TextMsgTrans:
Detailed DescriptionFires when a matching string is received. Definition at line 11 of file TextMsgTrans.h.
Constructor & Destructor Documentation
default constructor, use type name as instance name Definition at line 18 of file TextMsgTrans.h.
constructor with explicit instance name Definition at line 23 of file TextMsgTrans.h.
constructor with explicit instance name but no message; will match anything Definition at line 28 of file TextMsgTrans.h.
don't call (copy constructor) Member Function Documentation
Delegate function for event processing, the event itself is pointed to (only for the duration of the doEvent() call!) by event. Default implementation watches for 'private' text message events (those forwarded by a BehaviorSwitchControl from ControllerGUI input) and will publically rebroadcast them. The idea is that your own processEvent gets first dibs, but if the behavior doesn't handle the text message, it will be handed off for others. Reimplemented from BehaviorBase. Definition at line 42 of file TextMsgTrans.h.
Gives a short description of what this class of behaviors does... you should override this (but don't have to). If you do override this, also consider overriding getDescription() to return it Reimplemented from BehaviorBase. Definition at line 74 of file TextMsgTrans.h. Referenced by getDescription().
Gives a short description of what this particular instantiation does (in case a more specific description is needed on an individual basis). By default simply returns getName(), because any calls from a BehaviorBase function to getClassDescription() are going to call BehaviorBase::getClassDescription(), not ~YourSubClass~getClassDescription(), because static functions can't be virtual in C++ (doh!) This means that getDescription called on a pointer to a BehaviorBase of unknown subtype would always return an empty string, which is pretty useless. So instead we return the name in this situation. If you want getDescription to return getClassDescription, you'll have to override it in your subclass to do so. Reimplemented from BehaviorBase. Definition at line 75 of file TextMsgTrans.h.
don't call (assignment operator)
Called by start() before the doStart(), allows superclasses to do some initialization startup preceeding subclass customization. For robustness to future change, subclasses should be sure to call the superclass implementation. Reimplemented from BehaviorBase. Definition at line 37 of file TextMsgTrans.h. Member Data Documentation
true if msg value was supplied in constructor Definition at line 83 of file TextMsgTrans.h. Referenced by doEvent().
the trigger to match messages against Definition at line 82 of file TextMsgTrans.h. Referenced by doEvent().
copy of triggering event, used for reporting default match Definition at line 84 of file TextMsgTrans.h. Referenced by doEvent(). The documentation for this class was generated from the following file: |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:17 2016 by Doxygen 1.6.3 |