]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/UIUCModel/uiuc_warnings_errors.cpp
Make yasim accept the launchbar and hook properties. They are not tied to anything...
[flightgear.git] / src / FDM / UIUCModel / uiuc_warnings_errors.cpp
index 516bd769811be24f7743b7b688c3d351ef1730f9..e83531eee9a340d44bb91fb09e69cada094544b7 100644 (file)
@@ -11,9 +11,9 @@ Prints to screen the follow:
 - Error Code (errorCode)
 
 - Message indicating the problem. This message should be preceded by
-"Warning", "Error" or "Note".  Warnings are non-fatal and the code
-will pause.  Errors are fatal and will stop the code.  Notes are only
-for information.
+  "Warning", "Error" or "Note".  Warnings are non-fatal and the code
+  will pause.  Errors are fatal and will stop the code.  Notes are
+  only for information.
  
 
 ----------------------------------------------------------------------
@@ -74,26 +74,48 @@ for information.
  USA or view http://www.gnu.org/copyleft/gpl.html.
 
 **********************************************************************/
-#include <stdlib.h>
 
 #include "uiuc_warnings_errors.h"
 
-FG_USING_STD (cerr);
-FG_USING_STD (endl);
-FG_USING_STD (exit);
+SG_USING_STD (cerr);
+SG_USING_STD (endl);
+
+#ifndef _MSC_VER
+SG_USING_STD (exit);
+#endif
 
 void uiuc_warnings_errors(int errorCode, string line)
 {
   switch (errorCode)
     {
     case 1:
-       cerr << "UIUC ERROR: The value of the coefficient in \"" << line << "\" should be of type float" << endl;
-       exit(-1);
-        break;
+      cerr << "UIUC ERROR 1: The value of the coefficient in \"" << line << "\" should be of type float" << endl;
+      exit(-1);
+      break;
     case 2:
-       cerr << "UIUC ERROR: Unknown identifier in \"" << line << "\"" << endl;
-       exit(-1);
-        break;
+      cerr << "UIUC ERROR 2: Unknown identifier in \"" << line << "\" (check uiuc_map_*.cpp)" << endl;
+      exit(-1);
+      break;
+    case 3:
+      cerr << "UIUC ERROR 3: Slipstream effects only work w/ the engine simpleSingleModel line: \"" << line  << endl;
+      exit(-1);
+      break;
+    case 4:
+      cerr << "UIUC ERROR 4: Downwash mode does not exist: \"" << line  << endl;
+      exit(-1);
+      break;
+    case 5:
+      cerr << "UIUC ERROR 5: Must use dyn_on_speed not equal to zero: \"" << line << endl;
+      exit(-1);
+      break;
+    case 6:
+      cerr << "UIUC ERROR 6: Table lookup data exceeds 99 point limit: \"" << endl;
+      exit(-1);
+      break;
+    case 7:
+      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;
+      exit(-1);
+      break;
     }
 }