#include <Functor_T.h>


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. | |
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.
| ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Command_Callback< RECEIVER, ACTION >::ACE_Command_Callback | ( | RECEIVER & | recvr, | |
| ACTION | action | |||
| ) | [inline] |
Constructor: sets the <receiver_> of the Command to recvr, and the <action_> of the Command to <action>.
| ACE_Command_Callback< RECEIVER, ACTION >::~ACE_Command_Callback | ( | void | ) | [inline, virtual] |
Virtual destructor.
| int ACE_Command_Callback< RECEIVER, ACTION >::execute | ( | void * | arg = 0 |
) | [inline, virtual] |
RECEIVER& ACE_Command_Callback< RECEIVER, ACTION >::receiver_ [private] |
Object where the method resides.
ACTION ACE_Command_Callback< RECEIVER, ACTION >::action_ [private] |
Method that is going to be invoked.
1.5.3