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

Command.h

Go to the documentation of this file.
00001 // Command.h,v 1.1 1995/05/15 17:39:41 burnett Exp
00002 // Abstract base class for commands
00003 
00004 #ifndef CONTROL_COMMAND_H
00005 #define CONTROL_COMMAND_H
00006 
00007 namespace gui {
00008 
00009 class Command {
00010         // This is based on the Command pattern from "Design Patterns".
00011         // Command has just a pure virtual function execute() for which
00012         // concrete classes must provide an implementation.
00013 
00014 public:
00015     virtual ~Command();
00016         // virtual destructor for a base class
00017 
00018         virtual void execute() = 0;
00019     // subclasses must implement execute
00020 
00021 protected:
00022     Command();
00023 };
00024 
00025 inline 
00026 Command::~Command() {}
00027 
00028 inline 
00029 Command::Command() {}
00030 
00031 } //namespace gui
00032 #endif // CONTROL_COMMAND_H
00033 

Generated at Wed Nov 21 12:20:54 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000