1
0
Fork 0

- use proper error output method

- warnings--
This commit is contained in:
mfranz 2006-03-31 16:56:14 +00:00
parent bff4c3fe22
commit 885f3f9b3a
3 changed files with 7 additions and 13 deletions

View file

@ -57,8 +57,8 @@ SG_USING_STD(random_shuffle);
/********** FGAirport Dynamics *********************************************/
FGAirportDynamics::FGAirportDynamics(double lat, double lon, double elev, string id) :
_latitude(lat),
_longitude(lon),
_latitude(lat),
_elevation(elev),
_id(id)
{
@ -437,13 +437,11 @@ void FGAirportDynamics::pi (const char * target, const char * data) {
}
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)

View file

@ -566,11 +566,9 @@ void FGRunwayPreference::pi (const char * target, const char * data) {
}
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 << ')');
}

View file

@ -268,11 +268,9 @@ void FGTrafficManager::pi (const char * target, const char * data) {
}
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 << ')');
}