00001 #ifndef HEADER_SIMPLEMSG_H 00002 #define HEADER_SIMPLEMSG_H 00003 00004 #include "BaseMsg.h" 00005 #include "BaseListener.h" 00006 00007 /** 00008 * Simple text messgage. 00009 */ 00010 class SimpleMsg : public BaseMsg { 00011 public: 00012 CLONE(SimpleMsg); 00013 SimpleMsg(BaseListener *listener, const std::string &name) 00014 : BaseMsg(listener->getName(), name) {} 00015 SimpleMsg(const std::string &listenerName, const std::string &name) 00016 : BaseMsg(listenerName, name) {} 00017 00018 virtual void sendActual(BaseListener *listener) const 00019 { 00020 listener->receiveSimple(this); 00021 } 00022 }; 00023 00024 00025 #endif