#include <ace/Functor_T.h>
template<class RECEIVER, class ACTION> class ACE_Command_Callback : public ACE_Command_Base {
public:
ACE_Command_Callback (RECEIVER &recvr, ACTION action);
inline virtual ~ACE_Command_Callback (void);
virtual int execute (void *arg = 0);
private:
RECEIVER &receiver_;
ACTION action_;
};
ACE_Command_Callback (RECEIVER &recvr, ACTION action);
receiver_
of the Command to recvr, and the
action_
of the Command to action
.
inline virtual ~ACE_Command_Callback (void);
virtual int execute (void *arg = 0);
action_
from the object receiver_
.
RECEIVER &receiver_;
ACTION action_;
cdgill@cs.wustl.edu
Based on Command Pattern implementations originally done by
Carlos O'Ryan coryan@cs.wustl.edu
and
Douglas C. Schmidt schmidt@cs.wustl.edu
and
Sergio Flores-Gaitan sergio@cs.wustl.edu