]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGConfigFile.h
Fixes to jsbsim.
[flightgear.git] / src / FDM / JSBSim / FGConfigFile.h
index a5c065d031b6c166296ce1fcce94eb918d2de961..72da4bf0509c52e00c2102103c8bd7a5a1021f21 100644 (file)
@@ -55,10 +55,8 @@ INCLUDES
 DEFINES
 *******************************************************************************/
 
-#ifndef FGFS
 using std::string;
 using std::ifstream;
-#endif
 
 /*******************************************************************************
 CLASS DECLARATION
@@ -75,6 +73,7 @@ public:
   string GetValue(string);
   string GetValue(void);
   bool IsCommentLine(void);
+  bool IsOpen(void) {return Opened;}
   FGConfigFile& operator>>(double&);
   FGConfigFile& operator>>(float&);
   FGConfigFile& operator>>(int&);
@@ -87,6 +86,7 @@ private:
   ifstream cfgfile;
   string   CurrentLine;
   bool     CommentsOn;
+  bool     Opened;
   unsigned int      CurrentIndex;
 };