00001 /* 00002 * SetVerbosity.cpp 00003 * 00004 * Copyright (c) 2007, 2008, 2009, University of Karlsruhe (for members see AUTHORS file) 00005 * Copyright (c) 2012, Karlsruhe Institute of Technology (for members see AUTHORS file) 00006 * 00007 * ISC License 00008 * 00009 * Permission to use, copy, modify, and/or distribute this software for any 00010 * purpose with or without fee is hereby granted, provided that the above 00011 * copyright notice and this permission notice appear in all copies. 00012 * 00013 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 00014 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 00015 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 00016 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00017 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00018 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 00019 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00020 * 00021 * Created by Manfred Kroehnert 00022 */ 00023 00036 #include "../include/IPSA/ipsaclasses.h" 00037 #include "../include/IPSA/IpsaSimulator.h" 00038 #include "../include/IPSA/viewer/instructions/SetVerbosity.h" 00039 00040 Instruction::tExecResultType SetVerbosity::vExecute(std::vector<std::string>& Instr, std::ostringstream& answer, unsigned int& numberOfReturnValues) 00041 { 00042 numberOfReturnValues = 0; 00043 if ("1" == Instr[1]) 00044 ipsaSimulator->setVerbosity(true); 00045 else 00046 ipsaSimulator->setVerbosity(false); 00047 return eOK; 00048 }
Generated on Sat Mar 10 20:00:15 2012 for IPSA by 1.5.8 |