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

Last change on this file since 6623 was 6463, checked in by mervart, 10 years ago
File size: 2.5 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#include "satObs.h"
11
12class bncAntex;
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 putOrbCorrections(const std::vector<t_orbCorr*>& corr);
29 void putClkCorrections(const std::vector<t_clkCorr*>& corr);
30 void putCodeBiases(const std::vector<t_satCodeBias*>& satBias);
31 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
32
33 const t_pppEphPool* ephPool() const {return _ephPool;}
34 const t_pppObsPool* obsPool() const {return _obsPool;}
35 const bncAntex* antex() const {return _antex;}
36 const t_pppStation* staRover() const {return _staRover;}
37 double offGG() const {return _offGG;}
38
39 std::ostringstream& log() {return *_log;}
40 const t_pppOptions* 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(const std::vector<t_satObs*>& satObs,
51 std::vector<t_pppSatObs*>& obsVector, bncTime& epoTime);
52 t_irc cmpModel(t_pppStation* station, const ColumnVector& xyzc,
53 std::vector<t_pppSatObs*>& obsVector);
54 t_irc cmpBancroft(const bncTime& epoTime, std::vector<t_pppSatObs*>& obsVector,
55 ColumnVector& xyzc, bool print);
56 double cmpOffGG(std::vector<t_pppSatObs*>& obsVector);
57
58 t_output* _output;
59 t_pppEphPool* _ephPool;
60 t_pppObsPool* _obsPool;
61 bncTime _epoTimeRover;
62 t_pppStation* _staRover;
63 bncAntex* _antex;
64 t_pppFilter* _filter;
65 double _offGG;
66 std::vector<t_pppSatObs*> _obsRover;
67 std::ostringstream* _log;
68 t_pppOptions* _opt;
69 t_tides* _tides;
70};
71
72}; // namespace BNC_PPP
73
74#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
75#define LOG (BNC_PPP::t_pppClient::instance()->log())
76#define OPT (BNC_PPP::t_pppClient::instance()->opt())
77
78#endif
Note: See TracBrowser for help on using the repository browser.