00001 #ifndef _INSTRUCTIONS_SAVE_IV_FILE_H_ 00002 #define _INSTRUCTIONS_SAVE_IV_FILE_H_ 00003 /* 00004 * SaveIVFile.h 00005 * 00006 * Copyright (c) 2007, 2008, 2009, University of Karlsruhe (for members see AUTHORS file) 00007 * Copyright (c) 2011, 2012, 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 Manfred Kroehnert 00024 */ 00025 00030 #include "../../IPSA.h" 00031 #include "Instruction.h" 00032 #include <vector> 00033 #include <string> 00034 00035 class IpsaSimulator; 00036 00037 class IPSA_VIEWER_IMPORT_EXPORT SaveIVFile : public Instruction 00038 { 00039 public: 00040 SaveIVFile(IpsaSimulator* simulator, const std::string& code = std::string("save <filename>")) 00041 :Instruction(code), ipsaSimulator(simulator) {;} 00042 protected: 00043 virtual tExecResultType vExecute(std::vector<std::string>& Instr, std::ostringstream& answer, unsigned int& numberOfReturnValues); 00044 IpsaSimulator* ipsaSimulator; 00045 }; 00046 00047 #endif
Generated on Sat Mar 10 20:00:14 2012 for IPSA by 1.5.8 |