X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Flogger.hxx;h=1f99cd9102c66bfe235267a9b8de83839b341448;hb=7b95bb5aa382d0e573e4597213a2e0f1c3d53601;hp=cdadc25306c45685a2f990251e1adb8b54565e8a;hpb=d8a50ad49ec9b6403e6e05e14a6c50694cb42061;p=flightgear.git diff --git a/src/Main/logger.hxx b/src/Main/logger.hxx index cdadc2530..1f99cd910 100644 --- a/src/Main/logger.hxx +++ b/src/Main/logger.hxx @@ -6,43 +6,28 @@ #ifndef __LOGGER_HXX #define __LOGGER_HXX 1 -#ifndef __cplusplus -# error This library requires C++ -#endif - -#ifdef HAVE_CONFIG_H -# include -#endif - -#include -#include -#include -#include - -#include -SG_USING_STD(ostream); - +#include #include -SG_USING_STD(vector); - -#include "fgfs.hxx" +#include +#include /** * Log any property values to any number of CSV files. */ -class FGLogger : public FGSubsystem +class FGLogger : public SGSubsystem { public: FGLogger (); virtual ~FGLogger (); - // Implementation of FGSubsystem + // Implementation of SGSubsystem virtual void init (); + virtual void reinit (); virtual void bind (); virtual void unbind (); - virtual void update (int dt); + virtual void update (double dt); private: @@ -52,14 +37,14 @@ private: struct Log { Log (); virtual ~Log (); - vector nodes; - ostream * output; + std::vector nodes; + std::ostream * output; long interval_ms; - long last_time_ms; + double last_time_ms; char delimiter; }; - vector _logs; + std::vector _logs; };