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. References _text, _token, EventBase::activateETID, and EventBase::textmsgEGID. |
|
Constructor, pass a text msg.
Definition at line 14 of file TextMsgEvent.h. References _text, _token, EventBase::activateETID, and EventBase::textmsgEGID. |
|
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. References _text, _token, LoadSave::creatorSize(), EventBase::getBinSize(), and LoadSave::stringpad. |
|
returns the text
Definition at line 16 of file TextMsgEvent.h. References _text. |
|
returns the token
Definition at line 19 of file TextMsgEvent.h. References _token. |
|
Load from a saved buffer.
Reimplemented from EventBase. Definition at line 30 of file TextMsgEvent.h. References _text, _token, LoadSave::checkCreator(), LoadSave::decode(), and EventBase::LoadBuffer(). |
|
Save to a given buffer.
Reimplemented from EventBase. Definition at line 44 of file TextMsgEvent.h. References _text, _token, LoadSave::encode(), EventBase::SaveBuffer(), and LoadSave::saveCreator(). |
|
sets the text
Definition at line 17 of file TextMsgEvent.h. References _text. |
|
sets the token
Definition at line 20 of file TextMsgEvent.h. References _token. |
|
the unmodified arguments passed to the command
Definition at line 59 of file TextMsgEvent.h. |
|
for future expansion, to support centralized parsing
Definition at line 60 of file TextMsgEvent.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:09:13 2003 by Doxygen 1.3.2 |