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

IntMsg Class Reference

Inheritance diagram for IntMsg:

Inheritance graph
[legend]
Collaboration diagram for IntMsg:

Collaboration graph
[legend]

Detailed Description

Message with integer value.

Definition at line 10 of file IntMsg.h.

Public Member Functions

 CLONE (IntMsg)
 IntMsg (BaseListener *listener, const std::string &name, int value)
 IntMsg (const std::string &listenerName, const std::string &name, int value)
virtual void sendActual (BaseListener *listener) const
int getValue () const
virtual std::string toString () const


Constructor & Destructor Documentation

IntMsg::IntMsg BaseListener listener,
const std::string &  name,
int  value
[inline]
 

Definition at line 15 of file IntMsg.h.

00017             : BaseMsg(listener->getName(), name), m_value(value) {}

IntMsg::IntMsg const std::string &  listenerName,
const std::string &  name,
int  value
[inline]
 

Definition at line 18 of file IntMsg.h.

00020             : BaseMsg(listenerName, name), m_value(value) {}


Member Function Documentation

IntMsg::CLONE IntMsg   ) 
 

int IntMsg::getValue  )  const [inline]
 

Definition at line 26 of file IntMsg.h.

00026 { return m_value; }

virtual void IntMsg::sendActual BaseListener listener  )  const [inline, virtual]
 

Implements BaseMsg.

Definition at line 22 of file IntMsg.h.

00023         {
00024             listener->receiveInt(this);
00025         }

std::string IntMsg::toString  )  const [virtual]
 

Reimplemented from BaseMsg.

Definition at line 15 of file IntMsg.cpp.

00016 {
00017     std::string result = m_listenerName;
00018     result.append("->" + m_name);
00019     result.append("(" + StringTool::toString(m_value) + ")");
00020     return result;
00021 }


The documentation for this class was generated from the following files:
Generated on Wed Jun 1 09:55:26 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2