cmd_options.h

来自「由matlab开发的hybrid系统的描述语言」· C头文件 代码 · 共 98 行

H
98
字号
/*	HYSDEL	Copyright (C) 1999-2002  Fabio D. Torrisi	This file is part of HYSDEL.    	HYSDEL is free software; you can redistribute it and/or	modify it under the terms of the GNU General Public	License as published by the Free Software Foundation; either	version 2 of the License, or (at your option) any later version.	HYSDEL is distributed in the hope that it will be useful,	but WITHOUT ANY WARRANTY; without even the implied warranty of	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU	General Public License for more details.	You should have received a copy of the GNU General Public	License along with this library; if not, write to the Free Software	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA	CONTACT INFORMATION	===================	Fabio D. Torrisi	ETH Zentrum	Physikstrasse. 3 ETL,	CH-8032 Zurich	Switzerland	mailto:torrisi@aut.ee.ethz.ch (preferred)*/#ifndef D_CMD_OPTIONS#define D_CMD_OPTIONS#ifndef STD_NS#define STD_NSusing namespace std;#endifclass Globals;#include "string"//#include "cmdline.h"struct args_info;/** stores all options specified in the command line */class Cmd_options {public:	Cmd_options(const struct gengetopt_args_info * args_info,		const Globals * glob);	bool do_MLD() const { return do_mld; }	bool do_simulator() const { return do_simu; }	string simulator_name() const { return simu_name; }	bool gen_param_checks() const { return gen_paramcheck; }	/** treat all parameters symbolically, even if they have	 * a value assigned */	bool all_params_symbolic() const;		bool consts_in_eq_as_error() const {return handle_consts_in_eq==1;}	bool consts_in_eq_as_B5D5() const {return handle_consts_in_eq==2;}	bool consts_in_eq_as_auxvar() const {return handle_consts_in_eq==3;}	bool print_symtable() const {return _print_symtable;}	bool print_rowinfo() const {return _print_rowinfo;}		int get_verbose() const {return verbose;}		bool use_matlab_symbolic() const {return matlab_symbolic;}private:	bool matlab_symbolic;	bool do_mld, do_simu;	string simu_name;	bool gen_paramcheck;	/** 1: error, 2: B5D5, 3: auxvar */	int handle_consts_in_eq;	bool _all_params_symbolic;	bool _print_symtable, _print_rowinfo;	int verbose;	const Globals * globals;};#endif // D_CMD_OPTIONS

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?