]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/logger.hxx
Roy Vegard Ovesen:
[flightgear.git] / src / Main / logger.hxx
index ef11ef7da9828f105cb6344a49c54d526420d678..f1098d6790c38438c832294d00f5d9e409364afb 100644 (file)
 #  include <config.h>
 #endif
 
+#include <iostream>
+#include <vector>
+
 #include <simgear/compiler.h>
 #include <simgear/debug/logstream.hxx>
-#include <simgear/misc/exception.hxx>
-#include <simgear/misc/props.hxx>
+#include <simgear/structure/exception.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
+#include <simgear/props/props.hxx>
 
-#include <iostream>
 SG_USING_STD(ostream);
-
-#include <vector>
 SG_USING_STD(vector);
 
-#include "fgfs.hxx"
-
 
 /**
  * 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:
 
@@ -55,7 +55,8 @@ private:
     vector<SGPropertyNode *> nodes;
     ostream * output;
     long interval_ms;
-    long last_time_ms;
+    double last_time_ms;
+    char delimiter;
   };
 
   vector<Log> _logs;