ACE  6.0.6
Public Member Functions | Private Attributes
ACE_Command_Callback Class Reference

Defines a class template that allows us to invoke a GOF command style callback to an object without knowing anything about the object except its type. More...

#include <Functor_T.h>

Inheritance diagram for ACE_Command_Callback:
Inheritance graph
[legend]
Collaboration diagram for ACE_Command_Callback:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ACE_Command_Callback (RECEIVER &recvr, ACTION action)
virtual ~ACE_Command_Callback (void)
 Virtual destructor.
virtual int execute (void *arg=0)
 Invokes the method action_ from the object receiver_.

Private Attributes

RECEIVER & receiver_
 Object where the method resides.
ACTION action_
 Method that is going to be invoked.

Detailed Description

Defines a class template that allows us to invoke a GOF command style callback to an object without knowing anything about the object except its type.

This class declares an interface to execute operations, binding a RECEIVER object with an ACTION. The RECEIVER knows how to implement the operation. A class can invoke operations without knowing anything about it, or how it was implemented.


Constructor & Destructor Documentation

ACE_Command_Callback::ACE_Command_Callback ( RECEIVER &  recvr,
ACTION  action 
)

Constructor: sets the receiver_ of the Command to recvr, and the action_ of the Command to action.

ACE_Command_Callback::~ACE_Command_Callback ( void  ) [virtual]

Virtual destructor.


Member Function Documentation

int ACE_Command_Callback::execute ( void *  arg = 0) [virtual]

Invokes the method action_ from the object receiver_.

Implements ACE_Command_Base.


Member Data Documentation

Method that is going to be invoked.

RECEIVER& ACE_Command_Callback::receiver_ [private]

Object where the method resides.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines