Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_M_Broadcaster Class Reference

Mix-in class for objects that can broadcast messages to CP_M_Listeners.

List of all members.

Public Member Functions

Constructor / Destructor
virtual ~CP_M_Broadcaster ()
 Constructor.
Listeners
void AddListener (CP_M_Listener *inListener)
void RemoveListener (CP_M_Listener *inListener)
Message
void BroadcastMessage (CP_Message &inMessage)

Protected Member Functions

Constructor / Destructor
 CP_M_Broadcaster ()
 Constructor.

Protected Attributes

CP_ListenersfListeners

Private Member Functions

No Copy
 CP_M_Broadcaster (const CP_M_Broadcaster &inBroadcaster)
CP_M_Broadcasteroperator= (const CP_M_Broadcaster &inString)


Constructor & Destructor Documentation

CP_M_Broadcaster::~CP_M_Broadcaster  )  [virtual]
 

Destructor.

Exceptions:
none 

CPLAT_Begin_Namespace_CPLAT CP_M_Broadcaster::CP_M_Broadcaster  )  [protected]
 

Constructor.

Exceptions:
none 

CP_M_Broadcaster::CP_M_Broadcaster const CP_M_Broadcaster inBroadcaster  )  [private]
 


Member Function Documentation

void CP_M_Broadcaster::AddListener CP_M_Listener inListener  ) 
 

Adds the passed in listener to the list of listeners maintained for this object. It first verifies that the listener is not already a member of the known listeners for this object.

Parameters:
inListener The CP_M_Listener to add to the list.
Exceptions:
none 
Returns:
void

void CP_M_Broadcaster::RemoveListener CP_M_Listener inListener  ) 
 

Remove the passed in listener from the list of listeners maintained by this object.

Parameters:
inListener The CP_M_Listener to remove from the list.
Exceptions:
none 
Returns:
void

void CP_M_Broadcaster::BroadcastMessage CP_Message inMessage  ) 
 

Sends the passed in message to all of the listeners registered with this object.

Parameters:
inMessage The message to be sent.
Exceptions:
none 
Returns:
void

CP_M_Broadcaster& CP_M_Broadcaster::operator= const CP_M_Broadcaster inString  )  [private]
 


Member Data Documentation

CP_Listeners* CP_M_Broadcaster::fListeners [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:48 2005 for CPLAT by  doxygen 1.4.0