| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <TextMsgEvent.h>
Inheritance diagram for TextMsgEvent:

Definition at line 8 of file TextMsgEvent.h.
Public Member Functions | |
| TextMsgEvent () | |
| Constructor. | |
| TextMsgEvent (const std::string &text) | |
| Constructor, pass a text msg. | |
| std::string | getText () const |
| returns the text | |
| TextMsgEvent & | setText (const std::string &text) |
| sets the text | |
| int | getToken () const |
| returns the token | |
| TextMsgEvent & | setToken (int token) |
| sets the token | |
| virtual unsigned int | getBinSize () const |
| calculates space needed to save - if you can't precisely add up the size, overestimate and things will still work. | |
| virtual unsigned int | LoadBuffer (const char buf[], unsigned int len) |
| Load from a saved buffer. | |
| virtual unsigned int | SaveBuffer (char buf[], unsigned int len) const |
| Save to a given buffer. | |
Protected Attributes | |
| std::string | _text |
| the unmodified arguments passed to the command | |
| int | _token |
| for future expansion, to support centralized parsing | |
|
|
Constructor.
Definition at line 11 of file TextMsgEvent.h. |
|
|
Constructor, pass a text msg.
Definition at line 14 of file TextMsgEvent.h. |
|
|
calculates space needed to save - if you can't precisely add up the size, overestimate and things will still work.
Reimplemented from EventBase. Definition at line 22 of file TextMsgEvent.h. |
|
|
returns the text
Definition at line 16 of file TextMsgEvent.h. Referenced by EventLogger::processEvent(). |
|
|
returns the token
Definition at line 19 of file TextMsgEvent.h. Referenced by EventLogger::processEvent(). |
|
||||||||||||
|
Load from a saved buffer.
Reimplemented from EventBase. Definition at line 30 of file TextMsgEvent.h. Referenced by EventTranslator::sendEvent(). |
|
||||||||||||
|
Save to a given buffer.
Reimplemented from EventBase. Definition at line 44 of file TextMsgEvent.h. |
|
|
sets the text
Definition at line 17 of file TextMsgEvent.h. |
|
|
sets the token
Definition at line 20 of file TextMsgEvent.h. |
|
|
the unmodified arguments passed to the command
Definition at line 59 of file TextMsgEvent.h. Referenced by getBinSize(), getText(), LoadBuffer(), SaveBuffer(), setText(), and TextMsgEvent(). |
|
|
for future expansion, to support centralized parsing
Definition at line 60 of file TextMsgEvent.h. Referenced by getBinSize(), getToken(), LoadBuffer(), SaveBuffer(), setToken(), and TextMsgEvent(). |
|
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:29 2004 by Doxygen 1.3.4 |