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

Last change on this file since 10256 was 10256, checked in by stuerze, 11 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.0 KB
RevLine 
[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
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:
[7288]23 t_pppClient(const t_pppOptions* opt);
24 ~t_pppClient();
[7237]25
[7288]26 void putEphemeris(const t_eph* eph);
[7237]27 void putTec(const t_vTec* vTec);
[7288]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);
[7237]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;}
[8905]36 const bncAntex* antex() const {return _antex;}
[7237]37 const t_pppStation* staRover() const {return _staRover;}
[10256]38 double offGlo() const {return _offGlo;}
39 double offGal() const {return _offGal;}
40 double offBds() const {return _offBds;}
[7237]41
42 std::ostringstream& log() {return *_log;}
[7248]43 const t_pppOptions* opt() const {return _opt;}
[9600]44 static t_irc bancroft(const Matrix& BBpass, ColumnVector& pos);
[7237]45
46 static t_pppClient* instance();
47
[7972]48 void reset();
49
[7237]50 private:
51 void initOutput(t_output* output);
[9545]52 void finish(t_irc irc, int ind);
[7237]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);
[9560]57 void useObsWithCodeBiasesOnly(std::vector<t_pppSatObs*>& obsVector);
[7237]58 t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
59 std::vector<t_pppSatObs*>& obsVector);
[7288]60 t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
[7237]61 ColumnVector& xyzc, bool print);
[10256]62 double cmpOffGlo(std::vector<t_pppSatObs*>& obsVector);
63 double cmpOffGal(std::vector<t_pppSatObs*>& obsVector);
64 double cmpOffBds(std::vector<t_pppSatObs*>& obsVector);
[10232]65
[10256]66
[7237]67 t_output* _output;
68 t_pppEphPool* _ephPool;
69 t_pppObsPool* _obsPool;
70 bncTime _epoTimeRover;
71 t_pppStation* _staRover;
72 bncAntex* _antex;
73 t_pppFilter* _filter;
[10256]74 double _offGlo;
75 double _offGal;
76 double _offBds;
[7237]77 std::vector<t_pppSatObs*> _obsRover;
[7288]78 std::ostringstream* _log;
79 t_pppOptions* _opt;
[7237]80 t_tides* _tides;
[8905]81 bool _pseudoObsIono;
[10256]82 QMap<char, int> _usedSystems;
[7237]83};
84
85}; // namespace BNC_PPP
86
87#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
88#define LOG (BNC_PPP::t_pppClient::instance()->log())
89#define OPT (BNC_PPP::t_pppClient::instance()->opt())
90
91#endif
Note: See TracBrowser for help on using the repository browser.