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

Last change on this file since 5761 was 5761, 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 "ppp.h"
7#include "ephemeris.h"
8#include "options.h"
9
10class bncAntex;
11
12namespace BNC {
13
14class t_ephPool;
15class t_obsPool;
16class t_satObs;
17class t_station;
18class t_filter;
19
20class t_pppClient {
21 public:
22 t_pppClient(const t_options* opt);
23 ~t_pppClient();
24
25 void putGPSEphemeris(const t_ephGPS* eph);
26 void putGloEphemeris(const t_ephGlo* eph);
27 void putOrbCorrections(int numCorr, const t_orbCorr* corr);
28 void putClkCorrections(int numCorr, const t_clkCorr* corr);
29 void putBiases(int numBiases, const t_satBiases* biases);
30 void processEpoch(int numSatRover, const t_pppSatObs* satObsRover,
31 t_output* output);
32
33 const t_ephPool* ephPool() const {return _ephPool;}
34 const t_obsPool* obsPool() const {return _obsPool;}
35 const bncAntex* antex() const {return _antex;}
36 const t_station* staRover() const {return _staRover;}
37 double offGG() const {return _offGG;}
38
39 std::ostringstream& log() {return *_log;}
40 const t_options* opt() const {return _opt;}
41
42 static void bancroft(const Matrix& BBpass, ColumnVector& pos);
43
44 static t_pppClient* instance();
45
46 private:
47 void initOutput(t_output* output);
48 void finish(t_irc irc);
49 void clearObs();
50 t_irc prepareObs(int numSat, const t_pppSatObs* satObs,
51 std::vector<t_satObs*>& obsVector, bncTime& epoTime);
52 t_irc cmpModel(t_station* station, const ColumnVector& xyzc,
53 std::vector<t_satObs*>& obsVector);
54 t_irc cmpBancroft(const bncTime& epoTime,
55 std::vector<t_satObs*>& obsVector,
56 ColumnVector& xyzc, bool print);
57 double cmpOffGG(std::vector<t_satObs*>& obsVector);
58
59 t_output* _output;
60 t_ephPool* _ephPool;
61 t_obsPool* _obsPool;
62 bncTime _epoTimeRover;
63 t_station* _staRover;
64 bncAntex* _antex;
65 t_filter* _filter;
66 double _offGG;
67 std::vector<t_satObs*> _obsRover;
68 std::ostringstream* _log;
69 t_options* _opt;
70};
71
72}; // namespace BNC
73
74#define PPP_CLIENT (BNC::t_pppClient::instance())
75#define LOG (BNC::t_pppClient::instance()->log())
76#define OPT (BNC::t_pppClient::instance()->opt())
77
78#endif
Note: See TracBrowser for help on using the repository browser.