# include STL_STRING
SG_USING_STD(string);
-SG_USING_STD(queue);
+
+# ifndef M_PI
+# include <simgear/constants.h>
+# define M_PI SG_PI
+# endif
#else
# endif
using std::string;
-using std::queue;
+
+# ifndef M_PI
+# define M_PI 3.14159265358979323846
+# endif
+
#endif
-#ifndef M_PI
-# include <simgear/constants.h>
-# define M_PI SG_PI
+#if !defined(WIN32) || defined(__GNUC__)
+using std::max;
#endif
#ifdef __FreeBSD__ // define gcvt on FreeBSD
static char *gcvt(double number, size_t ndigit, char *buf)
{
- sprintf(buf, "%f", number);
- return buf;
+ sprintf(buf, "%f", number);
+ return buf;
}
#endif
FORWARD DECLARATIONS
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
-
-/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-COMMENTS, REFERENCES, and NOTES [use "class documentation" below for API docs]
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
+namespace JSBSim {
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CLASS DOCUMENTATION
void disableHighLighting(void);
+ static short debug_lvl;
+ double KelvinToFahrenheit (double kelvin) {
+ return 1.8*kelvin - 459.4;
+ }
+
+ double RankineToCelsius (double rankine) {
+ return (rankine - 491.67)/1.8;
+ }
+
protected:
static Message localMsg;
- static queue <Message*> Messages;
+ static std::queue <Message*> Messages;
virtual void Debug(int from) {};
- static short debug_lvl;
static unsigned int frame;
static unsigned int messageId;
static const double ktstofps;
static const double inchtoft;
static const double in3tom3;
- static const double Reng; // Specific Gas Constant,ft^2/(sec^2*R)
+ static double Reng; // Specific Gas Constant,ft^2/(sec^2*R)
static const double SHRatio;
static const string needed_cfg_version;
static const string JSBSim_version;
};
-
+}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#endif