00001 #include "headers.h" 00002 00003 static const string exitCommandString = "exit"; 00004 00005 string 00006 ExitCommand::getCommandString() { 00007 return exitCommandString; 00008 } 00009 00010 void 00011 ExitCommand::run(std::ostream& s) { 00012 GlobalObjects::destroy(); 00013 exit(0); 00014 } 00015 00016 00017 void 00018 ExitCommand::getHtmlInterface(std::ostream& s) { 00019 //"<h2><a href=\"/?cmd=" + exitCommandString + "\">Exit the program</a></h2>\n"; 00020 } 00021 00022