ACE_Command_Base Class Reference

Defines an abstract class that allows us to invoke commands without knowing anything about the implementation. More...

#include <Functor.h>

Inheritance diagram for ACE_Command_Base:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ACE_Command_Base (void)
 Default constructor.

virtual ~ACE_Command_Base (void)
 Virtual destructor.

virtual int execute (void *arg=0)=0

Detailed Description

Defines an abstract class that allows us to invoke commands without knowing anything about the implementation.

This class declares an interface to execute a command independent of the effect of the command, or the objects used to implement it.

Definition at line 60 of file Functor.h.


Constructor & Destructor Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Command_Base::ACE_Command_Base void   ) 
 

Default constructor.

Definition at line 45 of file Functor.inl.

00046 {
00047 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Command_Base::~ACE_Command_Base void   )  [virtual]
 

Virtual destructor.

Definition at line 42 of file Functor.cpp.

00043 {
00044 }


Member Function Documentation

virtual int ACE_Command_Base::execute void *  arg = 0  )  [pure virtual]
 

Invokes the method encapsulated by the command, passing along the passed argument (if any). Users of classes derived from this class must ensure that the resulting invocation can tolerate a null void pointer being passed, or otherwise ensure that this will never occur.

Implemented in ACE_Command_Callback< RECEIVER, ACTION >.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:20:41 2006 for ACE by doxygen 1.3.6