C:/Documents and Settings/jegan/Desktop/projectX/FlushCommand.cpp

Go to the documentation of this file.
00001 #include "Command.h"
00002 #include "List.h"
00003 #include "CommandManager.h"
00004 
00005 #include <iostream>
00006 
00007 using namespace std;
00008 
00009 const string FlushCommand::_id = "flush";
00010 
00011 FlushCommand::FlushCommand()
00012 {
00013 }
00014 
00015 FlushCommand::FlushCommand(List *command)
00016 {
00017 }
00018 
00019 void FlushCommand::execute()
00020 {
00021         CommandManager::instance()->flush();
00022 }
00023 
00024 std::string FlushCommand::getString()
00025 {
00026         List *command = new List();
00027         command->snoc(new Atom(_id));
00028         string commandString = command->getString();
00029         delete command;
00030 
00031         return commandString;
00032 }

Generated on Fri May 5 00:20:18 2006 for ProjectX by  doxygen 1.4.6-NO