]> git.mxchange.org Git - simgear.git/blobdiff - simgear/metar/MetarReport.cpp
SG_ namespace.
[simgear.git] / simgear / metar / MetarReport.cpp
index c8a9b5a06b3b355a769e4fd5d41e2666473c4d24..a1227e88b4ab02fd50a7044bd1f8f042da15bbd6 100644 (file)
@@ -1,8 +1,17 @@
 // Metar report implementation class code
 
+#include <simgear/compiler.h>
+
+#include STL_IOSTREAM
+
 #include "MetarReport.h"
 #include "Metar.h"
 
+#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(endl);
+SG_USING_STD(ostream);
+#endif
+
 CMetarReport::CMetarReport(
    char *s ) :
                m_DecodedReport( 0 )
@@ -207,17 +216,17 @@ int CMetarReport::VerticalVisibility() // Meters
 
 int CMetarReport::Ceiling()
 {
-       return FEET_TO_METER * ((Decoded_METAR *)m_DecodedReport)->Ceiling;
+       return SG_FEET_TO_METER * ((Decoded_METAR *)m_DecodedReport)->Ceiling;
 }
 
 int CMetarReport::EstimatedCeiling()
 {
-       return FEET_TO_METER * ((Decoded_METAR *)m_DecodedReport)->Estimated_Ceiling;
+       return SG_FEET_TO_METER * ((Decoded_METAR *)m_DecodedReport)->Estimated_Ceiling;
 }
 
 int CMetarReport::VariableSkyLayerHeight()
 {
-       return FEET_TO_METER * ((Decoded_METAR *)m_DecodedReport)->VrbSkyLayerHgt;
+       return SG_FEET_TO_METER * ((Decoded_METAR *)m_DecodedReport)->VrbSkyLayerHgt;
 }
 
 int CMetarReport::SnowDepthInches()
@@ -226,44 +235,44 @@ int CMetarReport::SnowDepthInches()
 }
 
 
-std::ostream&
+ostream&
 operator << ( ostream& out, CMetarReport& p )
 {
     return out 
        << "StationID " << p.StationID()
        << " WindDirection " << p.WindDirection()
        << " WindSpeed " << p.WindSpeed()
-       << " WindGustSpeed " << p.WindGustSpeed() << std::endl
+       << " WindGustSpeed " << p.WindGustSpeed() << endl
        << "CloudLow " << p.CloudLow()
        << " CloudMedium " << p.CloudMedium()
-       << " CloudHigh " << p.CloudHigh() << std::endl
+       << " CloudHigh " << p.CloudHigh() << endl
        << "TornadicDirection " << p.TornadicDirection()
-       << " TornadicMovementDirection " << p.TornadicMovementDirection() << std::endl
+       << " TornadicMovementDirection " << p.TornadicMovementDirection() << endl
        << "ThunderStormDirection " << p.ThunderStormDirection()
-       << " ThunderStormMovementDirection " << p.ThunderStormMovementDirection() << std::endl
+       << " ThunderStormMovementDirection " << p.ThunderStormMovementDirection() << endl
        << "Virga " << p.Virga()
-       << " VirgaDirection " << p.VirgaDirection() << std::endl
-       << "VolcanicAsh " << p.VolcanicAsh() << std::endl
-       << "Hail " << p.Hail() << std::endl
+       << " VirgaDirection " << p.VirgaDirection() << endl
+       << "VolcanicAsh " << p.VolcanicAsh() << endl
+       << "Hail " << p.Hail() << endl
        << "LightningDirection " << p.LightningDirection()
        << " OccationalLightning " << p.OccationalLightning()
        << " FrequentLightning " << p.FrequentLightning()
-       << " ContinuousLightning " << p.ContinuousLightning() << std::endl
+       << " ContinuousLightning " << p.ContinuousLightning() << endl
        << "CloudToGroundLightning " << p.CloudToGroundLightning()
        << " InterCloudLightning " << p.InterCloudLightning()
        << " CloudToCloudLightning " << p.CloudToCloudLightning()
-       << " CloudToAirLightning " << p.CloudToAirLightning() << std::endl
+       << " CloudToAirLightning " << p.CloudToAirLightning() << endl
        << "DistantLightning " << p.DistantLightning()
        << " AirportLightning " << p.AirportLightning()
        << " VicinityLightning " << p.VicinityLightning()
-       << " OverheadLightning " << p.OverheadLightning() << std::endl
-       << "VerticalVisibility " << p.VerticalVisibility() << std::endl // Meters
+       << " OverheadLightning " << p.OverheadLightning() << endl
+       << "VerticalVisibility " << p.VerticalVisibility() << endl // Meters
        << "Temperature " << p.Temperature() 
-       << " DewpointTemperature " << p.DewpointTemperature() << std::endl
+       << " DewpointTemperature " << p.DewpointTemperature() << endl
        << "Ceiling " << p.Ceiling()
        << " EstimatedCeiling " << p.EstimatedCeiling()
-       << " VariableSkyLayerHeight " << p.VariableSkyLayerHeight() << std::endl
-       << "SnowDepthInches " << p.SnowDepthInches() << std::endl
+       << " VariableSkyLayerHeight " << p.VariableSkyLayerHeight() << endl
+       << "SnowDepthInches " << p.SnowDepthInches() << endl
        ;
 }