1 | #ifndef PPPCLIENT_H
|
---|
2 | #define PPPCLIENT_H
|
---|
3 |
|
---|
4 | #include <sstream>
|
---|
5 | #include <vector>
|
---|
6 | #include "pppInclude.h"
|
---|
7 | #include "ephemeris.h"
|
---|
8 | #include "pppOptions.h"
|
---|
9 |
|
---|
10 | class bncAntex;
|
---|
11 |
|
---|
12 | namespace BNC_PPP {
|
---|
13 |
|
---|
14 | class t_pppClient {
|
---|
15 | public:
|
---|
16 | t_pppClient(const t_pppOptions* opt);
|
---|
17 | ~t_pppClient();
|
---|
18 |
|
---|
19 | void putEphemeris(const t_eph* eph);
|
---|
20 | void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
|
---|
21 | void putClkCorrections(const std::vector<t_clkCorr*>& corr);
|
---|
22 | void putBiases(const std::vector<t_satBias*>& satBias);
|
---|
23 | void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
|
---|
24 |
|
---|
25 | std::ostringstream& log() {return *_log;}
|
---|
26 | const t_pppOptions* opt() const {return _opt;}
|
---|
27 |
|
---|
28 | static t_pppClient* instance();
|
---|
29 |
|
---|
30 | private:
|
---|
31 | void initOutput(t_output* output);
|
---|
32 | void finish(t_irc irc);
|
---|
33 | void clearObs();
|
---|
34 | t_irc prepareObs(const std::vector<t_satObs*>& satObs,
|
---|
35 | std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
|
---|
36 | t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
|
---|
37 | std::vector<t_pppSatObs*>& obsVector);
|
---|
38 | t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
|
---|
39 | ColumnVector& xyzc, bool print);
|
---|
40 | double cmpOffGG(std::vector<t_pppSatObs*>& obsVector);
|
---|
41 |
|
---|
42 | std::ostringstream* _log;
|
---|
43 | t_pppOptions* _opt;
|
---|
44 | };
|
---|
45 |
|
---|
46 | }; // namespace BNC_PPP
|
---|
47 |
|
---|
48 | #define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
|
---|
49 | #define LOG (BNC_PPP::t_pppClient::instance()->log())
|
---|
50 | #define OPT (BNC_PPP::t_pppClient::instance()->opt())
|
---|
51 |
|
---|
52 | #endif
|
---|