00001 #ifndef _INSTRUCTIONS_VIEWER_HELP_H_ 00002 #define _INSTRUCTIONS_VIEWER_HELP_H_ 00003 /* 00004 * ViewerHelp.h 00005 * 00006 * Copyright (c) 2007, 2008, 2009, University of Karlsruhe (for members see AUTHORS file) 00007 * Copyright (c) 2011, Karlsruhe Institute of Technology (for members see AUTHORS file) 00008 * 00009 * ISC License 00010 * 00011 * Permission to use, copy, modify, and/or distribute this software for any 00012 * purpose with or without fee is hereby granted, provided that the above 00013 * copyright notice and this permission notice appear in all copies. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 00016 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 00017 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 00018 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00019 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00020 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 00021 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00022 * 00023 * Created by Alexander Bierbaum 00024 */ 00025 00035 #include "../../IPSA.h" 00036 #include "Instruction.h" 00037 #include <map> 00038 #include <vector> 00039 #include <string> 00040 00041 class IPSA_VIEWER_IMPORT_EXPORT ViewerHelp : public Instruction 00042 { 00043 public: 00044 ViewerHelp(std::map<std::string, Instruction*> AllInstructions, const std::string& code = std::string("help")) 00045 :Instruction(code), lAllInstructions(AllInstructions) {;} 00046 protected: 00047 virtual tExecResultType vExecute(std::vector<std::string>& Instr, std::ostringstream& answer, unsigned int& numberOfReturnValues); 00048 const std::map<std::string, Instruction*> lAllInstructions; 00049 }; 00050 00051 #endif // _INSTRUCTIONS_VIEWER_HELP_H_
Generated on Sat Mar 10 20:00:14 2012 for IPSA by 1.5.8 |