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

Last change on this file since 10327 was 10259, checked in by stuerze, 10 months ago

changes regarding PPP

  • 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.2 KB
Line 
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
11class bncAntex;
12
13namespace BNC_PPP {
14
15class t_pppEphPool;
16class t_pppObsPool;
17class t_pppSatObs;
18class t_pppStation;
19class t_pppFilter;
20
21class t_pppClient : public interface_pppClient {
22 public:
23 t_pppClient(const t_pppOptions* opt);
24 ~t_pppClient();
25
26 void putEphemeris(const t_eph* eph);
27 void putTec(const t_vTec* vTec);
28 void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
29 void putClkCorrections(const std::vector<t_clkCorr*>& corr);
30 void putCodeBiases(const std::vector<t_satCodeBias*>& biases);
31 void putPhaseBiases(const std::vector<t_satPhaseBias*>& biases);
32 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
33
34 const t_pppEphPool* ephPool() const {return _ephPool;}
35 const t_pppObsPool* obsPool() const {return _obsPool;}
36 const bncAntex* antex() const {return _antex;}
37 const t_pppStation* staRover() const {return _staRover;}
38 double offGlo() const {return _offGlo;}
39 double offGal() const {return _offGal;}
40 double offBds() const {return _offBds;}
41 void resetOffGlo() {_offGlo = 0.0;}
42 void resetOffGal() {_offGal = 0.0;}
43 void resetOffBds() {_offBds = 0.0;}
44
45 std::ostringstream& log() {return *_log;}
46 const t_pppOptions* opt() const {return _opt;}
47 static t_irc bancroft(const Matrix& BBpass, ColumnVector& pos);
48
49 static t_pppClient* instance();
50
51 void reset();
52
53 private:
54 void initOutput(t_output* output);
55 void finish(t_irc irc, int ind);
56 void clearObs();
57 t_irc prepareObs(const std::vector<t_satObs*>& satObs,
58 std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
59 bool preparePseudoObs(std::vector<t_pppSatObs*>& obsVector);
60 void useObsWithCodeBiasesOnly(std::vector<t_pppSatObs*>& obsVector);
61 t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
62 std::vector<t_pppSatObs*>& obsVector);
63 t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
64 ColumnVector& xyzc, bool print);
65 double cmpOffGlo(std::vector<t_pppSatObs*>& obsVector);
66 double cmpOffGal(std::vector<t_pppSatObs*>& obsVector);
67 double cmpOffBds(std::vector<t_pppSatObs*>& obsVector);
68
69
70 t_output* _output;
71 t_pppEphPool* _ephPool;
72 t_pppObsPool* _obsPool;
73 bncTime _epoTimeRover;
74 t_pppStation* _staRover;
75 bncAntex* _antex;
76 t_pppFilter* _filter;
77 double _offGlo;
78 double _offGal;
79 double _offBds;
80 std::vector<t_pppSatObs*> _obsRover;
81 std::ostringstream* _log;
82 t_pppOptions* _opt;
83 t_tides* _tides;
84 bool _pseudoObsIono;
85 QMap<char, int> _usedSystems;
86 bool _running;
87};
88
89}; // namespace BNC_PPP
90
91#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
92#define LOG (BNC_PPP::t_pppClient::instance()->log())
93#define OPT (BNC_PPP::t_pppClient::instance()->opt())
94
95#endif
Note: See TracBrowser for help on using the repository browser.