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 |
|
---|
10 | class bncAntex;
|
---|
11 |
|
---|
12 | namespace BNC {
|
---|
13 |
|
---|
14 | class t_ephPool;
|
---|
15 | class t_obsPool;
|
---|
16 | class t_satObs;
|
---|
17 | class t_station;
|
---|
18 | class t_filter;
|
---|
19 |
|
---|
20 | class t_pppClient {
|
---|
21 | public:
|
---|
22 | t_pppClient(const t_options* opt);
|
---|
23 | ~t_pppClient();
|
---|
24 |
|
---|
25 | void putEphemeris(const t_eph* eph);
|
---|
26 | void putOrbCorrections(const std::vector<t_orbCorr>& corr);
|
---|
27 | void putClkCorrections(const std::vector<t_clkCorr>& corr);
|
---|
28 | void putBiases(const std::vector<t_satBiases>& biases);
|
---|
29 | void processEpoch(const std::vector<t_pppSatObs>& pppSatObs, t_output* output);
|
---|
30 |
|
---|
31 | const t_ephPool* ephPool() const {return _ephPool;}
|
---|
32 | const t_obsPool* obsPool() const {return _obsPool;}
|
---|
33 | const bncAntex* antex() const {return _antex;}
|
---|
34 | const t_station* staRover() const {return _staRover;}
|
---|
35 | double offGG() const {return _offGG;}
|
---|
36 |
|
---|
37 | std::ostringstream& log() {return *_log;}
|
---|
38 | const t_options* opt() const {return _opt;}
|
---|
39 |
|
---|
40 | static void bancroft(const Matrix& BBpass, ColumnVector& pos);
|
---|
41 |
|
---|
42 | static t_pppClient* instance();
|
---|
43 |
|
---|
44 | private:
|
---|
45 | void initOutput(t_output* output);
|
---|
46 | void finish(t_irc irc);
|
---|
47 | void clearObs();
|
---|
48 | t_irc prepareObs(const std::vector<t_pppSatObs>& pppSatObs,
|
---|
49 | std::vector<t_satObs*>& obsVector, bncTime& epoTime);
|
---|
50 | t_irc cmpModel(t_station* station, const ColumnVector& xyzc,
|
---|
51 | std::vector<t_satObs*>& obsVector);
|
---|
52 | t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_satObs*>& obsVector,
|
---|
53 | ColumnVector& xyzc, bool print);
|
---|
54 | double cmpOffGG(std::vector<t_satObs*>& obsVector);
|
---|
55 |
|
---|
56 | t_output* _output;
|
---|
57 | t_ephPool* _ephPool;
|
---|
58 | t_obsPool* _obsPool;
|
---|
59 | bncTime _epoTimeRover;
|
---|
60 | t_station* _staRover;
|
---|
61 | bncAntex* _antex;
|
---|
62 | t_filter* _filter;
|
---|
63 | double _offGG;
|
---|
64 | std::vector<t_satObs*> _obsRover;
|
---|
65 | std::ostringstream* _log;
|
---|
66 | t_options* _opt;
|
---|
67 | };
|
---|
68 |
|
---|
69 | }; // namespace BNC
|
---|
70 |
|
---|
71 | #define PPP_CLIENT (BNC::t_pppClient::instance())
|
---|
72 | #define LOG (BNC::t_pppClient::instance()->log())
|
---|
73 | #define OPT (BNC::t_pppClient::instance()->opt())
|
---|
74 |
|
---|
75 | #endif
|
---|