/* INCLUDES */
/****************************************************************************/
#include <vector>
+#include STL_STRING
#include <plib/sg.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 MACOS
+#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