CallbackChain Class Reference

This Callback may be used to invoke multiple callbacks instead of one. More...

#include <callback_decls.h>

Inheritance diagram for CallbackChain:

Callback List of all members.

Public Member Functions

 CallbackChain ()
 Constructs an empty CallbackChain.
 CallbackChain (Callback *cb)
 Constructs a CallbackChain containing the single Callback cb.
void add (Callback *cb)
 Adds a Callback to the CallbackChain.
void run ()
 This method takes action when the Callback is to be run.

Detailed Description

This Callback may be used to invoke multiple callbacks instead of one.


Constructor & Destructor Documentation

CallbackChain::CallbackChain ( Callback cb  ) 

Constructs a CallbackChain containing the single Callback cb.

Make sure that cb was allocated using new as it will be destroyed by the destructor of the CallbackChain using delete.

Parameters:
cb is put in the CallbackChain


Member Function Documentation

void CallbackChain::add ( Callback cb  ) 

Adds a Callback to the CallbackChain.

Make sure that cb was allocated using new as it will be destroyed by the destructor of the CallbackChain using delete.

Parameters:
cb is put in the CallbackChain

void CallbackChain::run (  )  [virtual]

This method takes action when the Callback is to be run.

Derived classes must override this method.

Implements Callback.


The documentation for this class was generated from the following files:
Generated on Sat Feb 7 01:26:51 2009 by  doxygen 1.5.1