[7237] | 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 | #include "pppModel.h"
|
---|
| 10 |
|
---|
| 11 | class bncAntex;
|
---|
[8905] | 12 | class t_pppRefSat;
|
---|
[7237] | 13 |
|
---|
| 14 | namespace BNC_PPP {
|
---|
| 15 |
|
---|
| 16 | class t_pppEphPool;
|
---|
| 17 | class t_pppObsPool;
|
---|
| 18 | class t_pppSatObs;
|
---|
| 19 | class t_pppStation;
|
---|
| 20 | class t_pppFilter;
|
---|
| 21 |
|
---|
| 22 | class t_pppClient : public interface_pppClient {
|
---|
| 23 | public:
|
---|
[7288] | 24 | t_pppClient(const t_pppOptions* opt);
|
---|
| 25 | ~t_pppClient();
|
---|
[7237] | 26 |
|
---|
[7288] | 27 | void putEphemeris(const t_eph* eph);
|
---|
[7237] | 28 | void putTec(const t_vTec* vTec);
|
---|
[7288] | 29 | void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
|
---|
| 30 | void putClkCorrections(const std::vector<t_clkCorr*>& corr);
|
---|
| 31 | void putCodeBiases(const std::vector<t_satCodeBias*>& biases);
|
---|
| 32 | void putPhaseBiases(const std::vector<t_satPhaseBias*>& biases);
|
---|
[7237] | 33 | void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
|
---|
| 34 |
|
---|
| 35 | const t_pppEphPool* ephPool() const {return _ephPool;}
|
---|
| 36 | const t_pppObsPool* obsPool() const {return _obsPool;}
|
---|
[8905] | 37 | const bncAntex* antex() const {return _antex;}
|
---|
[7237] | 38 | const t_pppStation* staRover() const {return _staRover;}
|
---|
[8905] | 39 | double offGG() const {return _offGG;}
|
---|
[7237] | 40 |
|
---|
| 41 | std::ostringstream& log() {return *_log;}
|
---|
[7248] | 42 | const t_pppOptions* opt() const {return _opt;}
|
---|
[7237] | 43 |
|
---|
| 44 | static void bancroft(const Matrix& BBpass, ColumnVector& pos);
|
---|
| 45 |
|
---|
| 46 | static t_pppClient* instance();
|
---|
| 47 |
|
---|
[7972] | 48 | void reset();
|
---|
| 49 |
|
---|
[7237] | 50 | private:
|
---|
| 51 | void initOutput(t_output* output);
|
---|
| 52 | void finish(t_irc irc);
|
---|
| 53 | void clearObs();
|
---|
| 54 | t_irc prepareObs(const std::vector<t_satObs*>& satObs,
|
---|
| 55 | std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
|
---|
[8905] | 56 | bool preparePseudoObs(std::vector<t_pppSatObs*>& obsVector);
|
---|
[7237] | 57 | t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
|
---|
| 58 | std::vector<t_pppSatObs*>& obsVector);
|
---|
[7288] | 59 | t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
|
---|
[7237] | 60 | ColumnVector& xyzc, bool print);
|
---|
| 61 | double cmpOffGG(std::vector<t_pppSatObs*>& obsVector);
|
---|
| 62 |
|
---|
| 63 | t_output* _output;
|
---|
| 64 | t_pppEphPool* _ephPool;
|
---|
| 65 | t_pppObsPool* _obsPool;
|
---|
| 66 | bncTime _epoTimeRover;
|
---|
| 67 | t_pppStation* _staRover;
|
---|
| 68 | bncAntex* _antex;
|
---|
| 69 | t_pppFilter* _filter;
|
---|
| 70 | double _offGG;
|
---|
| 71 | std::vector<t_pppSatObs*> _obsRover;
|
---|
[7288] | 72 | std::ostringstream* _log;
|
---|
| 73 | t_pppOptions* _opt;
|
---|
[7237] | 74 | t_tides* _tides;
|
---|
[8905] | 75 | bool _pseudoObsIono;
|
---|
[7237] | 76 | };
|
---|
| 77 |
|
---|
| 78 | }; // namespace BNC_PPP
|
---|
| 79 |
|
---|
| 80 | #define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
|
---|
| 81 | #define LOG (BNC_PPP::t_pppClient::instance()->log())
|
---|
| 82 | #define OPT (BNC_PPP::t_pppClient::instance()->opt())
|
---|
| 83 |
|
---|
| 84 | #endif
|
---|