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

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

V2

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