Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

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 Methods

 ACE_Command_Base (void)
 Default constructor.

virtual ~ACE_Command_Base (void)
 Virtaul 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.


Constructor & Destructor Documentation

ACE_INLINE ACE_Command_Base::ACE_Command_Base ( void )
 

Default constructor.

ACE_INLINE ACE_Command_Base::~ACE_Command_Base ( void ) [virtual]
 

Virtaul destructor.


Member Function Documentation

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.

Reimplemented in ACE_Command_Callback.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 10:29:59 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000