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

Last change on this file since 8993 was 8993, checked in by stuerze, 4 years ago

minor changes in 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: 2.8 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;
12class t_pppRefSat;
13
14namespace BNC_PPP {
15
16class t_pppEphPool;
17class t_pppObsPool;
18class t_pppSatObs;
19class t_pppStation;
20class t_pppFilter;
21
22class t_pppClient : public interface_pppClient {
23 public:
24 t_pppClient(const t_pppOptions* opt);
25 ~t_pppClient();
26
27 void putEphemeris(const t_eph* eph);
28 void putTec(const t_vTec* vTec);
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);
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;}
37 const bncAntex* antex() const {return _antex;}
38 const t_pppStation* staRover() const {return _staRover;}
39 double offGG() const {return _offGG;}
40 double offGB() const {return _offGB;}
41
42 std::ostringstream& log() {return *_log;}
43 const t_pppOptions* opt() const {return _opt;}
44
45 static void bancroft(const Matrix& BBpass, ColumnVector& pos);
46
47 static t_pppClient* instance();
48
49 void reset();
50
51 private:
52 void initOutput(t_output* output);
53 void finish(t_irc irc);
54 void clearObs();
55 t_irc prepareObs(const std::vector<t_satObs*>& satObs,
56 std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
57 bool preparePseudoObs(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 cmpOffGG(std::vector<t_pppSatObs*>& obsVector);
63 double cmpOffGB(std::vector<t_pppSatObs*>& obsVector);
64 void setRefSatellites(std::vector<t_pppSatObs*>& obsVector);
65
66 t_output* _output;
67 t_pppEphPool* _ephPool;
68 t_pppObsPool* _obsPool;
69 bncTime _epoTimeRover;
70 t_pppStation* _staRover;
71 bncAntex* _antex;
72 t_pppFilter* _filter;
73 double _offGG;
74 double _offGB;
75 std::vector<t_pppSatObs*> _obsRover;
76 std::ostringstream* _log;
77 t_pppOptions* _opt;
78 t_tides* _tides;
79 bool _pseudoObsIono;
80 QList<t_prn> _historicalRefSats;
81};
82
83}; // namespace BNC_PPP
84
85#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
86#define LOG (BNC_PPP::t_pppClient::instance()->log())
87#define OPT (BNC_PPP::t_pppClient::instance()->opt())
88
89#endif
Note: See TracBrowser for help on using the repository browser.