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

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

Gestion tsid

File size: 977 bytes
Line 
1// auxinterpgps.h
2// Eric Aubourg CEA/DAPNIA/SPP aout 1999
3
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);
17
18 void FitsDump(string const& filename);
19 virtual AuxGPS* clone() {return new AuxInterpGPS(*this);}
20
21protected:
22 virtual void AddValue(double mjd, double lat, double lon, double alt);
23 virtual void FindElem(double mjd);
24
25 struct elem {
26 elem() {}
27 elem(double m, double la, double lo, double a)
28 : mjd(m), lat(la), lon(lo), alt(a) {}
29 double mjd;
30 double lat;
31 double lon;
32 double alt;
33 bool operator == (elem const& x) const {return mjd == x.mjd;}
34 bool operator < (elem const& x) const {return mjd < x.mjd;}
35 };
36
37 set<elem> elems;
38 set<elem>::const_iterator ilast;
39 bool ilastok;
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.