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

Last change on this file since 6041 was 5826, checked in by mervart, 10 years ago
File size: 2.4 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 {
22 public:
23 t_pppClient(const t_pppOptions* opt);
24 ~t_pppClient();
25
26 void putEphemeris(const t_eph* eph);
27 void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
28 void putClkCorrections(const std::vector<t_clkCorr*>& corr);
29 void putBiases(const std::vector<t_satBias*>& satBias);
30 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
31
32 const t_pppEphPool* ephPool() const {return _ephPool;}
33 const t_pppObsPool* obsPool() const {return _obsPool;}
34 const bncAntex* antex() const {return _antex;}
35 const t_pppStation* staRover() const {return _staRover;}
36 double offGG() const {return _offGG;}
37
38 std::ostringstream& log() {return *_log;}
39 const t_pppOptions* opt() const {return _opt;}
40
41 static void bancroft(const Matrix& BBpass, ColumnVector& pos);
42
43 static t_pppClient* instance();
44
45 private:
46 void initOutput(t_output* output);
47 void finish(t_irc irc);
48 void clearObs();
49 t_irc prepareObs(const std::vector<t_satObs*>& satObs,
50 std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
51 t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
52 std::vector<t_pppSatObs*>& obsVector);
53 t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
54 ColumnVector& xyzc, bool print);
55 double cmpOffGG(std::vector<t_pppSatObs*>& obsVector);
56
57 t_output* _output;
58 t_pppEphPool* _ephPool;
59 t_pppObsPool* _obsPool;
60 bncTime _epoTimeRover;
61 t_pppStation* _staRover;
62 bncAntex* _antex;
63 t_pppFilter* _filter;
64 double _offGG;
65 std::vector<t_pppSatObs*> _obsRover;
66 std::ostringstream* _log;
67 t_pppOptions* _opt;
68 t_tides* _tides;
69};
70
71}; // namespace BNC_PPP
72
73#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
74#define LOG (BNC_PPP::t_pppClient::instance()->log())
75#define OPT (BNC_PPP::t_pppClient::instance()->opt())
76
77#endif
Note: See TracBrowser for help on using the repository browser.