1 /**********************************************************************
3 FILENAME: uiuc_warnings_errors.cpp
5 ----------------------------------------------------------------------
9 Prints to screen the follow:
11 - Error Code (errorCode)
13 - Message indicating the problem. This message should be preceded by
14 "Warning", "Error" or "Note". Warnings are non-fatal and the code
15 will pause. Errors are fatal and will stop the code. Notes are
19 ----------------------------------------------------------------------
23 ----------------------------------------------------------------------
25 REFERENCES: based on "menu reader" format of Michael Selig
27 ----------------------------------------------------------------------
29 HISTORY: 01/29/2000 initial release
31 ----------------------------------------------------------------------
33 AUTHOR(S): Bipin Sehgal <bsehgal@uiuc.edu>
34 Jeff Scott <jscott@mail.com>
35 Michael Selig <m-selig@uiuc.edu>
37 ----------------------------------------------------------------------
41 ----------------------------------------------------------------------
46 ----------------------------------------------------------------------
48 OUTPUTS: -warning/error message to screen
50 ----------------------------------------------------------------------
52 CALLED BY: uiuc_menu.cpp
54 ----------------------------------------------------------------------
58 ----------------------------------------------------------------------
60 COPYRIGHT: (C) 2000 by Michael Selig
62 This program is free software; you can redistribute it and/or
63 modify it under the terms of the GNU General Public License
64 as published by the Free Software Foundation.
66 This program is distributed in the hope that it will be useful,
67 but WITHOUT ANY WARRANTY; without even the implied warranty of
68 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
69 GNU General Public License for more details.
71 You should have received a copy of the GNU General Public License
72 along with this program; if not, write to the Free Software
73 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
74 USA or view http://www.gnu.org/copyleft/gpl.html.
76 **********************************************************************/
78 #include "uiuc_warnings_errors.h"
87 void uiuc_warnings_errors(int errorCode, string line)
92 cerr << "UIUC ERROR 1: The value of the coefficient in \"" << line << "\" should be of type float" << endl;
96 cerr << "UIUC ERROR 2: Unknown identifier in \"" << line << "\" (check uiuc_map_*.cpp)" << endl;
100 cerr << "UIUC ERROR 3: Slipstream effects only work w/ the engine simpleSingleModel line: \"" << line << endl;
104 cerr << "UIUC ERROR 4: Downwash mode does not exist: \"" << line << endl;
108 cerr << "UIUC ERROR 5: Must use dyn_on_speed not equal to zero: \"" << line << endl;
112 cerr << "UIUC ERROR 6: Table lookup data exceeds 99 point limit: \"" << endl;
116 cerr << "UIUC ERROR 7: Need to download data file for the ornithopter. Go to http://www.aae.uiuc.edu/m-selig/apasim/Aircraft-uiuc.html " << endl;
122 // end uiuc_warnings_errors.cpp