]> git.mxchange.org Git - flightgear.git/blobdiff - JSBsim/FGTank.h
Latest changes from Jon, plus ...
[flightgear.git] / JSBsim / FGTank.h
index afb3020ea9375b743680dd05ae3eb4649f677f60..a41841c8555f87ebc2981479ff512d11c632279f 100644 (file)
@@ -43,8 +43,19 @@ SENTRY
 /*******************************************************************************
 INCLUDES
 *******************************************************************************/
-
-#include <fstream.h>
+#ifdef FGFS
+#  include <Include/compiler.h>
+#  include STL_STRING
+#  ifdef FG_HAVE_STD_INCLUDES
+#    include <fstream>
+#  else
+#    include <fstream.h>
+#  endif
+   FG_USING_STD(string);
+#else
+#  include <string>
+#  include <fstream>
+#endif
 
 /*******************************************************************************
 DEFINES
@@ -65,11 +76,13 @@ public:
   bool GetSelected(void) {return Selected;}
   float GetPctFull(void) {return PctFull;}
   float GetContents(void) {return Contents;}
+
+  enum TankType {ttUNKNOWN, ttFUEL, ttOXIDIZER};
   
 private:
+  TankType Type;
   float X, Y, Z;
   float Capacity;
-  int   Type;
   float Radius;
   float PctFull;
   float Contents;
@@ -79,4 +92,4 @@ protected:
 };
 
 /******************************************************************************/
-#endif
\ No newline at end of file
+#endif