Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

IntMsg.h

Go to the documentation of this file.
00001 #ifndef HEADER_INTMSG_H
00002 #define HEADER_INTMSG_H
00003 
00004 #include "BaseMsg.h"
00005 #include "BaseListener.h"
00006 
00007 /**
00008  * Message with integer value.
00009  */
00010 class IntMsg : public BaseMsg {
00011     private:
00012         int m_value;
00013     public:
00014         CLONE(IntMsg);
00015         IntMsg(BaseListener *listener, const std::string &name,
00016                 int value)
00017             : BaseMsg(listener->getName(), name), m_value(value) {}
00018         IntMsg(const std::string &listenerName, const std::string &name,
00019                 int value)
00020             : BaseMsg(listenerName, name), m_value(value) {}
00021 
00022         virtual void sendActual(BaseListener *listener) const
00023         {
00024             listener->receiveInt(this);
00025         }
00026         int getValue() const { return m_value; }
00027         virtual std::string toString() const;
00028 };
00029 
00030 
00031 #endif

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2