source: ntrip/trunk/BNC/src/PPP/pppClient.h@ 5769

Last change on this file since 5769 was 5769, checked in by mervart, 10 years ago
File size: 2.5 KB
Line 
1#ifndef PPPCLIENT_H
2#define PPPCLIENT_H
3
4#include <sstream>
5#include <vector>
6#include "ppp.h"
7#include "ephemeris.h"
8#include "options.h"
9
10class bncAntex;
11
12namespace BNC {
13
14class t_ephPool;
15class t_obsPool;
16class t_satObs;
17class t_station;
18class t_filter;
19
20class t_pppClient {
21 public:
22 t_pppClient(const t_options* opt);
23 ~t_pppClient();
24
25 void putGPSEphemeris(const t_ephGPS* eph);
26 void putGloEphemeris(const t_ephGlo* eph);
27 void putGalEphemeris(const t_ephGal* eph);
28 void putOrbCorrections(int numCorr, const t_orbCorr* corr);
29 void putClkCorrections(int numCorr, const t_clkCorr* corr);
30 void putBiases(int numBiases, const t_satBiases* biases);
31 void processEpoch(int numSatRover, const t_pppSatObs* satObsRover,
32 t_output* output);
33
34 const t_ephPool* ephPool() const {return _ephPool;}
35 const t_obsPool* obsPool() const {return _obsPool;}
36 const bncAntex* antex() const {return _antex;}
37 const t_station* staRover() const {return _staRover;}
38 double offGG() const {return _offGG;}
39
40 std::ostringstream& log() {return *_log;}
41 const t_options* opt() const {return _opt;}
42
43 static void bancroft(const Matrix& BBpass, ColumnVector& pos);
44
45 static t_pppClient* instance();
46
47 private:
48 void initOutput(t_output* output);
49 void finish(t_irc irc);
50 void clearObs();
51 t_irc prepareObs(int numSat, const t_pppSatObs* satObs,
52 std::vector<t_satObs*>& obsVector, bncTime& epoTime);
53 t_irc cmpModel(t_station* station, const ColumnVector& xyzc,
54 std::vector<t_satObs*>& obsVector);
55 t_irc cmpBancroft(const bncTime& epoTime,
56 std::vector<t_satObs*>& obsVector,
57 ColumnVector& xyzc, bool print);
58 double cmpOffGG(std::vector<t_satObs*>& obsVector);
59
60 t_output* _output;
61 t_ephPool* _ephPool;
62 t_obsPool* _obsPool;
63 bncTime _epoTimeRover;
64 t_station* _staRover;
65 bncAntex* _antex;
66 t_filter* _filter;
67 double _offGG;
68 std::vector<t_satObs*> _obsRover;
69 std::ostringstream* _log;
70 t_options* _opt;
71};
72
73}; // namespace BNC
74
75#define PPP_CLIENT (BNC::t_pppClient::instance())
76#define LOG (BNC::t_pppClient::instance()->log())
77#define OPT (BNC::t_pppClient::instance()->opt())
78
79#endif
Note: See TracBrowser for help on using the repository browser.