/********** FGAirport Dynamics *********************************************/
FGAirportDynamics::FGAirportDynamics(double lat, double lon, double elev, string id) :
- _latitude(lat),
_longitude(lon),
+ _latitude(lat),
_elevation(elev),
_id(id)
{
}
void FGAirportDynamics::warning (const char * message, int line, int column) {
- //cout << "Warning: " << message << " (" << line << ',' << column << ')'
- // << endl;
+ SG_LOG(SG_IO, SG_WARN, "Warning: " << message << " (" << line << ',' << column << ')');
}
void FGAirportDynamics::error (const char * message, int line, int column) {
- //cout << "Error: " << message << " (" << line << ',' << column << ')'
- // << endl;
+ SG_LOG(SG_IO, SG_ALERT, "Error: " << message << " (" << line << ',' << column << ')');
}
void FGAirportDynamics::setRwyUse(const FGRunwayPreference& ref)
}
void FGRunwayPreference::warning (const char * message, int line, int column) {
- //cout << "Warning: " << message << " (" << line << ',' << column << ')'
- // << endl;
+ SG_LOG(SG_IO, SG_WARN, "Warning: " << message << " (" << line << ',' << column << ')');
}
void FGRunwayPreference::error (const char * message, int line, int column) {
- //cout << "Error: " << message << " (" << line << ',' << column << ')'
- // << endl;
+ SG_LOG(SG_IO, SG_ALERT, "Error: " << message << " (" << line << ',' << column << ')');
}
}
void FGTrafficManager::warning (const char * message, int line, int column) {
- cout << "Warning: " << message << " (" << line << ',' << column << ')'
- << endl;
+ SG_LOG(SG_IO, SG_WARN, "Warning: " << message << " (" << line << ',' << column << ')');
}
void FGTrafficManager::error (const char * message, int line, int column) {
- cout << "Error: " << message << " (" << line << ',' << column << ')'
- << endl;
+ SG_LOG(SG_IO, SG_ALERT, "Error: " << message << " (" << line << ',' << column << ')');
}