source: ntrip/trunk/BNC/src/PPP_free/pppClient.h@ 6060

Last change on this file since 6060 was 6051, checked in by mervart, 10 years ago
File size: 1.1 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
10class bncAntex;
11
12namespace BNC_PPP {
13
14class t_pppClient {
15 public:
16 t_pppClient(const t_pppOptions* opt);
17 ~t_pppClient();
18
19 void putEphemeris(const t_eph* eph);
20 void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
21 void putClkCorrections(const std::vector<t_clkCorr*>& corr);
22 void putBiases(const std::vector<t_satBias*>& satBias);
23 void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
24
25 std::ostringstream& log() {return *_log;}
26 const t_pppOptions* opt() const {return _opt;}
27
28 static t_pppClient* instance();
29
30 private:
31 std::ostringstream* _log;
32 t_pppOptions* _opt;
33};
34
35}; // namespace BNC_PPP
36
37#define PPP_CLIENT (BNC_PPP::t_pppClient::instance())
38#define LOG (BNC_PPP::t_pppClient::instance()->log())
39#define OPT (BNC_PPP::t_pppClient::instance()->opt())
40
41#endif
Note: See TracBrowser for help on using the repository browser.