1 /***************************************************************************
2                           boatpositionlog.h  -  description
3                              -------------------
4     begin                : Sat Mar 16 2002
5     copyright            : (C) 2002 by Michael Bridak
6     email                : michael.bridak@verizon.net
7 $Id: boatpositionlog.h,v 1.2 2003/04/14 05:51:03 mbridak Exp $
8  ***************************************************************************/
9 
10 /***************************************************************************
11  *                                                                         *
12  *   This program is free software; you can redistribute it and/or modify  *
13  *   it under the terms of the GNU General Public License as published by  *
14  *   the Free Software Foundation; either version 2 of the License.     *
15  *    .                                   *
16  *                                                                         *
17  ***************************************************************************/
18 
19 #ifndef BOATPOSITIONLOG_H
20 #define BOATPOSITIONLOG_H
21 
22 
23 /**A stack to hold our intermitent boat position
24   *@author Michael Bridak
25   */
26 
27 class BoatPositionLog {
28 public:
29 	struct position {
30 		float lat;
31 		float lon;
32 		double bearing;
33 		Uint32 tick;
34 	};
35 	BoatPositionLog();
36 	~BoatPositionLog();
37 	  void RecBoatPos(position temp);
38   /** Remove the oldest record off stack. */
39   void PopRecord();
40   /** returns a log item */
41   void GetLogItem(int item, position &loc);
42 
43   /**  */
44 	position storage[10];
45 
46   /** number of items on the stack
47  */
48   int size;
49 };
50 
51 #endif
52