]> git.mxchange.org Git - flightgear.git/blobdiff - src/Aircraft/replay.hxx
Improve timing statistics
[flightgear.git] / src / Aircraft / replay.hxx
index a2a8deee7a6f93d64b55c754098f07139e098342..3ad3aed0c69bdf3c69e72317c50fb2bf394cd8ba 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -39,7 +39,7 @@
 #include <Network/net_ctrls.hxx>
 #include <Network/net_fdm.hxx>
 
-SG_USING_STD(deque);
+using std::deque;
 
 
 class FGReplayData {
@@ -51,7 +51,7 @@ public:
     FGNetCtrls ctrls;
 };
 
-typedef deque < FGReplayData > replay_list_type;
+typedef deque < FGReplayData *> replay_list_type;
 
 
 
@@ -69,6 +69,7 @@ public:
     virtual ~FGReplay();
 
     virtual void init();
+    virtual void reinit();
     virtual void bind();
     virtual void unbind();
     virtual void update( double dt );
@@ -78,6 +79,7 @@ public:
     double get_end_time();
     
 private:
+    void clear();
 
     static const double st_list_time;   // 60 secs of high res data
     static const double mt_list_time;  // 10 mins of 1 fps data
@@ -90,11 +92,15 @@ private:
     double sim_time;
     double last_mt_time;
     double last_lt_time;
+    int last_replay_state;
 
     replay_list_type short_term;
     replay_list_type medium_term;
     replay_list_type long_term;
+    replay_list_type recycler;
     SGPropertyNode_ptr disable_replay;
+    SGPropertyNode_ptr replay_master;
+    SGPropertyNode_ptr replay_time;
 };