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

Last change on this file since 5758 was 5758, 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();
23 ~t_pppClient();
24 void setOptions(const t_options* opt);
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 const t_ephPool* ephPool() const {return _ephPool;}
33 const t_obsPool* obsPool() const {return _obsPool;}
34 const bncAntex* antex() const {return _antex;}
35 const t_station* staRover() const {return _staRover;}
36 double offGG() const {return _offGG;}
37 static void bancroft(const Matrix& BBpass, ColumnVector& pos);
38
39 std::ostringstream* _log;
40 t_options* _opt;
41
42 static t_pppClient* instance();
43
44 private:
45 void initOutput(t_output* output);
46 void finish(t_irc irc);
47 void clearObs();
48 t_irc prepareObs(int numSat, const t_pppSatObs* satObs,
49 std::vector<t_satObs*>& obsVector, bncTime& epoTime);
50 t_irc cmpModel(t_station* station, const ColumnVector& xyzc,
51 std::vector<t_satObs*>& obsVector);
52 t_irc cmpBancroft(const bncTime& epoTime,
53 std::vector<t_satObs*>& obsVector,
54 ColumnVector& xyzc, bool print);
55 double cmpOffGG(std::vector<t_satObs*>& obsVector);
56
57 t_output* _output;
58 t_ephPool* _ephPool;
59 t_obsPool* _obsPool;
60 bncTime _epoTimeRover;
61 t_station* _staRover;
62 bncAntex* _antex;
63 t_filter* _filter;
64 double _offGG;
65 std::vector<t_satObs*> _obsRover;
66
67};
68
69}; // namespace BNC
70
71// Pointer to the main object (thread-specific)
72#define PPP_CLIENT (BNC::t_pppClient::instance())
73
74// Log stream abbreviation
75#define LOG (*PPP_CLIENT->_log)
76
77// Options abbreviation
78#define OPT (PPP_CLIENT->_opt)
79
80#endif
Note: See TracBrowser for help on using the repository browser.