X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2Fstars.cxx;h=dcfb5901e126065b1f39f4ece1fad5532c257582;hb=a46163bcd7fe4daa2bcfc95d6d609870797bad70;hp=ff5d6aa4103118e4ed6c3fb42db61b8268036273;hpb=1984ae1583d160c46e026806352d45dad3d41df6;p=simgear.git diff --git a/simgear/ephemeris/stars.cxx b/simgear/ephemeris/stars.cxx index ff5d6aa4..dcfb5901 100644 --- a/simgear/ephemeris/stars.cxx +++ b/simgear/ephemeris/stars.cxx @@ -21,10 +21,14 @@ // $Id$ +#include #include #include "stars.hxx" +#ifdef _MSC_VER + FG_USING_STD(getline); +#endif // Constructor FGStars::FGStars() { @@ -49,11 +53,12 @@ bool FGStars::load() { // build the full path name to the stars data base file data_path.append( "stars" ); - cout << " Loading stars from " << data_path.str() << endl; + FG_LOG( FG_ASTRO, FG_INFO, " Loading stars from " << data_path.str() ); fg_gzifstream in( data_path.str() ); if ( ! in.is_open() ) { - cout << "Cannot open star file: " << data_path.str() << endl; + FG_LOG( FG_ASTRO, FG_ALERT, "Cannot open star file: " + << data_path.str() ); exit(-1); } @@ -110,7 +115,7 @@ bool FGStars::load() { ++nstars; } - cout << " Loaded " << nstars << " stars" << endl; + FG_LOG( FG_ASTRO, FG_INFO, " Loaded " << nstars << " stars" ); return true; }