/* INCLUDES */
/****************************************************************************/
#include <vector>
+#include STL_STRING
-#include <sg.h>
+#include <plib/sg.h>
-#include <Math/sphrintp.h>
+#include "sphrintp.h"
#include "FGPhysicalProperties.h"
#include "FGPhysicalProperty.h"
/****************************************************************************/
/* DEFINES */
/****************************************************************************/
-FG_USING_STD(vector);
-FG_USING_NAMESPACE(std);
+SG_USING_STD(vector);
+SG_USING_STD(string);
+SG_USING_NAMESPACE(std);
/****************************************************************************/
/* CLASS DECLARATION */
DatabaseWorkingType DatabaseStatus;
- void init( const WeatherPrecision visibility, const DatabaseWorkingType type );
+ void init( const WeatherPrecision visibility,
+ const DatabaseWorkingType type,
+ const string &root );
/************************************************************************/
/* Constructor and Destructor */
/************************************************************************/
FGLocalWeatherDatabase(
const sgVec3& position,
+ const string& root,
const WeatherPrecision visibility = DEFAULT_WEATHER_VISIBILITY,
const DatabaseWorkingType type = PREFERED_WORKING_TYPE)
{
sgCopyVec3( last_known_position, position );
- init( visibility, type );
+ init( visibility, type, root );
theFGLocalWeatherDatabase = this;
}
const WeatherPrecision position_lat,
const WeatherPrecision position_lon,
const WeatherPrecision position_alt,
+ const string& root,
const WeatherPrecision visibility = DEFAULT_WEATHER_VISIBILITY,
const DatabaseWorkingType type = PREFERED_WORKING_TYPE)
{
sgSetVec3( last_known_position, position_lat, position_lon, position_alt );
- init( visibility, type );
+ init( visibility, type, root );
theFGLocalWeatherDatabase = this;
}
/************************************************************************/
/* Get the physical properties on the specified point p */
/************************************************************************/
+#ifdef macintosh
+ /* fix a problem with mw compilers in that they don't know the
+ difference between the next two methods. Since the first one
+ doesn't seem to be used anywhere, I commented it out. This is
+ supposed to be fixed in the forthcoming CodeWarrior Release
+ 6. */
+#else
FGPhysicalProperties get(const sgVec2& p) const;
+#endif
FGPhysicalProperty get(const sgVec3& p) const;
WeatherPrecision getAirDensity(const sgVec3& p) const;