#ifdef FGFS
# include <simgear/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
+#include <string>
+
/*******************************************************************************
DEFINES
*******************************************************************************/
-#ifndef FGFS
-using namespace std;
-#endif
+using std::string;
+using std::ifstream;
/*******************************************************************************
CLASS DECLARATION
string GetValue(string);
string GetValue(void);
bool IsCommentLine(void);
+ bool IsOpen(void) {return Opened;}
FGConfigFile& operator>>(double&);
FGConfigFile& operator>>(float&);
FGConfigFile& operator>>(int&);
ifstream cfgfile;
string CurrentLine;
bool CommentsOn;
+ bool Opened;
unsigned int CurrentIndex;
};