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

CompoundCommand.h

Go to the documentation of this file.
00001 //     $Id: CompoundCommand.h,v 1.1.1.1 2001/01/04 01:01:11 burnett Exp $
00002 // Project: Atlas top-level prototype
00003 //  Author: Toby Burnett
00004 //
00005 
00006 #ifndef COMPOUNDCOMMAND_H
00007 #define COMPOUNDCOMMAND_H
00008 
00009 #include "gui/Command.h"
00010 #include <vector>
00011 
00012 namespace gui {
00013 
00014 typedef  std::vector<Command*  > CommandList;
00015     
00016 class CompoundCommand : public Command , private CommandList {
00017     // A Command which is a list of Commands
00018     
00019 public:
00020     CompoundCommand(Command* cmd = 0);
00021     // constructor can insert the first command 
00022     
00023     ~CompoundCommand();
00024     
00025     void append(Command* cmd);
00026     // add a command to the list
00027     
00028     virtual void execute();
00029     // Like all commands, it needs an execute method.
00030 };
00031 
00032 } //namespace gui
00033 
00034 #endif
00035 

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