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

Last change on this file since 10031 was 10031, checked in by stuerze, 12 months ago

minor changes

  • Property svn:keywords set to Author Date Id Rev URL;svn:eol-style=native
  • Property svn:mime-type set to text/plain
File size: 3.0 KB
Line 
1#ifndef PPPCLIENT_H
2#define PPPCLIENT_H
3
4#include <sstream>
5#include <vector>
6#include <QMap>
7#include "pppInclude.h"
8#include "ephemeris.h"
9#include "pppOptions.h"
10#include "pppModel.h"
11#include "pppRefSat.h"
12
13class bncAntex;
14
15namespace BNC_PPP {
16
17class t_pppEphPool;
18class t_pppObsPool;
19class t_pppSatObs;
20class t_pppStation;
21class t_pppFilter;
22
23class t_pppClient : public interface_pppClient {
24 public:
25 t_pppClient(const t_pppOptions* opt);
26 ~t_pppClient();
27
28 void putEphemeris(const t_eph* eph);
29 void putTec(const t_vTec* vTec);
30 void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
31 void putClkCorrections(const std::vector<t_clkCorr*>& corr);
32 void putCodeBiases(const std::vector<t_satCodeBias*>& biases);
33 void putPhaseBiases(const std::vector<t_satPhaseBias*>& biases);
34 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
35
36 const t_pppEphPool* ephPool() const {return _ephPool;}
37 const t_pppObsPool* obsPool() const {return _obsPool;}
38 const bncAntex* antex() const {return _antex;}
39 const t_pppStation* staRover() const {return _staRover;}
40
41 std::ostringstream& log() {return *_log;}
42 const t_pppOptions* opt() const {return _opt;}
43
44 static t_irc bancroft(const Matrix& BBpass, ColumnVector& pos);
45
46 static t_pppClient* instance();
47
48 void reset();
49
50 private:
51 void initOutput(t_output* output);
52 void finish(t_irc irc, int ind);
53 void clearObs();
54 t_irc prepareObs(const std::vector<t_satObs*>& satObs,
55 std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
56 bool preparePseudoObs(std::vector<t_pppSatObs*>& obsVector);
57 void useObsWithCodeBiasesOnly(std::vector<t_pppSatObs*>& obsVector);
58 t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
59 std::vector<t_pppSatObs*>& obsVector);
60 t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
61 ColumnVector& xyzc, bool print);
62 double cmpOffGlo(std::vector<t_pppSatObs*>& obsVector);
63 double cmpOffGal(std::vector<t_pppSatObs*>& obsVector);
64 double cmpOffBds(std::vector<t_pppSatObs*>& obsVector);
65 t_irc handleRefSatellites(std::vector<t_pppSatObs*>& obsVector);
66 void setRefSatellites(std::vector<t_pppSatObs*>& obsVector);
67 void setHistoricalRefSats();
68
69 t_output* _output;
70 t_pppEphPool* _ephPool;
71 t_pppObsPool* _obsPool;
72 bncTime _epoTimeRover;
73 t_pppStation* _staRover;
74 bncAntex* _antex;
75 t_pppFilter* _filter;
76 std::vector<t_pppSatObs*> _obsRover;
77 QMap<char, t_pppRefSat*> _refSatMap;
78 std::ostringstream* _log;
79 t_pppOptions* _opt;
80 t_tides* _tides;
81 bool _pseudoObsIono;
82 int _numEpoProcessing;
83 QMap<char, QList<t_prn>> _historicalRefSats;
84};
85
86}; // namespace BNC_PPP
87
88#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
89#define LOG (BNC_PPP::t_pppClient::instance()->log())
90#define OPT (BNC_PPP::t_pppClient::instance()->opt())
91
92#endif
Note: See TracBrowser for help on using the repository browser.