Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::Command Class Reference

Command captures the semantics of allowing commands to be added as a reverse command type. More...

#include <Command.hpp>

Inheritance diagram for corelinux::Command

Inheritance graph
[legend]
Collaboration diagram for corelinux::Command:

Collaboration graph
[legend]
List of all members.

Public Methods

 Command ( void )
 Default Constructor.

 Command ( CommandCref )
 Copy constructor.

 Command ( AbstractCommandPtr )
 Constructor with reverse command.

virtual ~Command ( void )
 Virtual Destructor.

CommandRef operator= ( CommandCref )
 Assignment operator.

bool operator== ( CommandCref ) const
 Equality operator.

virtual AbstractCommandPtr getReverseCommand ( void ) const
 Retrieves the reverse command. More...

virtual void setReverseCommand ( AbstractCommandPtr )
 Sets the reverse command pointer to be used by the executeReverse call. More...

virtual void executeReverse ( void )
 If theReverseCommand is not null, call its execute method.


Protected Attributes

AbstractCommandPtr theReverseCommand
 The infamous reverse command.


Detailed Description

Command captures the semantics of allowing commands to be added as a reverse command type.

It adds the reverse execution interface along with the storage for the AbstractCommand that is considered the reverse.


Member Function Documentation

AbstractCommandPtr corelinux::Command::getReverseCommand ( void ) const [virtual]
 

Retrieves the reverse command.

Returns:
AbstractCommand pointer or NULLPTR

void corelinux::Command::setReverseCommand ( AbstractCommandPtr aCmdPtr ) [virtual]
 

Sets the reverse command pointer to be used by the executeReverse call.

Parameters:
AbstractCommand   pointer to valid command or NULLPTR


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium