00001
00002 #ifndef INCLUDED_TextMsgEvent_h
00003 #define INCLUDED_TextMsgEvent_h
00004
00005 #include "EventBase.h"
00006
00007
00008 class TextMsgEvent : public EventBase {
00009 public:
00010
00011 TextMsgEvent() : EventBase(EventBase::textmsgEGID,(unsigned int)-1, EventBase::statusETID,0),_text("") { }
00012
00013
00014 TextMsgEvent(const std::string& text) : EventBase(EventBase::textmsgEGID,(unsigned int)-1, EventBase::statusETID,0),_text(text) { }
00015
00016 std::string getText() const { return _text; }
00017 TextMsgEvent& setText(const std::string& text) { _text=text; return *this; }
00018
00019
00020
00021
00022 std::string getDescription(bool showTypeSpecific=true, unsigned int verbosity=0) const;
00023
00024 virtual unsigned int getBinSize() const;
00025 virtual unsigned int LoadBuffer(const char buf[], unsigned int len);
00026 virtual unsigned int SaveBuffer(char buf[], unsigned int len) const;
00027
00028 protected:
00029 std::string _text;
00030
00031 };
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 #endif