Command.hpp
#if !defined(__COMMAND_HPP)
#define __COMMAND_HPP
/*
CoreLinux++
Copyright (C) 1999,2000 CoreLinux Consortium
The CoreLinux++ Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The CoreLinux++ Library Library is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#if !defined(__COMMON_HPP)
#include <Common.hpp>
#endif
#if !defined(__ABSTRACTCOMMAND_HPP)
#include <AbstractCommand.hpp>
#endif
namespace corelinux
{
DECLARE_CLASS( Command );
class Command : public AbstractCommand
{
public:
//
// Constructors and destructor
//
Command( void );
Command( CommandCref );
Command( AbstractCommandPtr );
virtual ~Command( void );
//
// Operator overloads
//
CommandRef operator=( CommandCref );
bool operator==( CommandCref ) const;
//
// Accessors
//
virtual AbstractCommandPtr getReverseCommand( void ) const;
//
// Mutators
//
virtual void setReverseCommand( AbstractCommandPtr );
virtual void executeReverse( void ) ;
protected:
AbstractCommandPtr theReverseCommand;
private:
};
}
#endif // if !defined(__COMMAND_HPP)
/*
Common rcs information do not modify
$Author: frankc $
$Revision: 1.1 $
$Date: 2000/05/03 03:56:47 $
$Locker: $
*/
corelinux::Command::executeReverse
virtual void executeReverse(void)
If theReverseCommand is not null, call its execute method.
Definition: Command.cpp:99
corelinux::Command::operator=
CommandRef operator=(CommandCref)
Assignment operator.
Definition: Command.cpp:70
corelinux::Command
Command captures the semantics of allowing commands to be added as a reverse command type...
Definition: Command.hpp:44
corelinux::Command::setReverseCommand
virtual void setReverseCommand(AbstractCommandPtr)
Sets the reverse command pointer to be used by the executeReverse call.
Definition: Command.cpp:91
corelinux::Command::~Command
virtual ~Command(void)
Virtual Destructor.
Definition: Command.cpp:63
corelinux::Command::getReverseCommand
virtual AbstractCommandPtr getReverseCommand(void) const
Retrieves the reverse command.
Definition: Command.cpp:84
corelinux::AbstractCommand
AbstractCommand captures the semantics of the capabilities of commands, which is basically to provide...
Definition: AbstractCommand.hpp:38
corelinux::Command::theReverseCommand
AbstractCommandPtr theReverseCommand
The infamous reverse command.
Definition: Command.hpp:115
corelinux::Command::operator==
bool operator==(CommandCref) const
Equality operator.
Definition: Command.cpp:77
corelinux::Command::Command
Command(void)
Default Constructor.
Definition: Command.cpp:33

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium