source: Sophya/trunk/Poubelle/archTOI.old/auxinterpgps.h@ 358

Last change on this file since 358 was 358, checked in by ansari, 26 years ago

auxilliary GPS

File size: 907 bytes
RevLine 
[358]1#ifndef AUXINTERPGPS_H
2#define AUXINTERPGPS_H
3
4#include "auxgps.h"
5#include <set>
6#include <string>
7
8using namespace std;
9
10class AuxInterpGPS : public AuxGPS {
11public:
12 AuxInterpGPS();
13 virtual int getLocation(double mjd, double& lat, double& lon, double& alt);
14
15 void FitsDump(string const& filename);
16 virtual AuxGPS* clone() {return new AuxInterpGPS(*this);}
17
18protected:
19 virtual void AddValue(double mjd, double lat, double lon, double alt);
20 virtual void FindElem(double mjd);
21
22 struct elem {
23 elem() {}
24 elem(double m, double la, double lo, double a)
25 : mjd(m), lat(la), lon(lo), alt(a) {}
26 double mjd;
27 double lat;
28 double lon;
29 double alt;
30 bool operator == (elem const& x) const {return mjd == x.mjd;}
31 bool operator < (elem const& x) const {return mjd < x.mjd;}
32 };
33
34 set<elem> elems;
35 set<elem>::const_iterator ilast;
36 bool ilastok;
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.