ACE 8.0.1
|
Defines an abstract class that allows us to invoke commands without knowing anything about the implementation. More...
#include <Functor.h>
Public Member Functions | |
ACE_Command_Base () | |
Default constructor. | |
virtual | ~ACE_Command_Base ()=default |
Virtual destructor. | |
virtual int | execute (void *arg=0)=0 |
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.
|
inline |
Default constructor.
|
virtualdefault |
Virtual destructor.
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_Noop_Command, ACE_Member_Function_Command< RECEIVER >, and ACE_Command_Callback< RECEIVER, ACTION >.