1 |
|
---|
2 | // Part of BNC, a utility for retrieving decoding and
|
---|
3 | // converting GNSS data streams from NTRIP broadcasters.
|
---|
4 | //
|
---|
5 | // Copyright (C) 2007
|
---|
6 | // German Federal Agency for Cartography and Geodesy (BKG)
|
---|
7 | // http://www.bkg.bund.de
|
---|
8 | // Czech Technical University Prague, Department of Geodesy
|
---|
9 | // http://www.fsv.cvut.cz
|
---|
10 | //
|
---|
11 | // Email: euref-ip@bkg.bund.de
|
---|
12 | //
|
---|
13 | // This program is free software; you can redistribute it and/or
|
---|
14 | // modify it under the terms of the GNU General Public License
|
---|
15 | // as published by the Free Software Foundation, version 2.
|
---|
16 | //
|
---|
17 | // This program is distributed in the hope that it will be useful,
|
---|
18 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
20 | // GNU General Public License for more details.
|
---|
21 | //
|
---|
22 | // You should have received a copy of the GNU General Public License
|
---|
23 | // along with this program; if not, write to the Free Software
|
---|
24 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
25 |
|
---|
26 | /* -------------------------------------------------------------------------
|
---|
27 | * BKG NTRIP Client
|
---|
28 | * -------------------------------------------------------------------------
|
---|
29 | *
|
---|
30 | * Class: t_pppClient
|
---|
31 | *
|
---|
32 | * Purpose: PPP Client processing starts here
|
---|
33 | *
|
---|
34 | * Author: L. Mervart
|
---|
35 | *
|
---|
36 | * Created: 29-Jul-2014
|
---|
37 | *
|
---|
38 | * Changes:
|
---|
39 | *
|
---|
40 | * -----------------------------------------------------------------------*/
|
---|
41 |
|
---|
42 | #include <QThreadStorage>
|
---|
43 |
|
---|
44 | #include <iostream>
|
---|
45 | #include <iomanip>
|
---|
46 | #include <stdlib.h>
|
---|
47 | #include <string.h>
|
---|
48 | #include <stdexcept>
|
---|
49 |
|
---|
50 | #include "pppClient.h"
|
---|
51 | #include "bncconst.h"
|
---|
52 | #include "bncutils.h"
|
---|
53 | #include "bncantex.h"
|
---|
54 |
|
---|
55 | using namespace BNC_PPP;
|
---|
56 | using namespace std;
|
---|
57 |
|
---|
58 | // Global variable holding thread-specific pointers
|
---|
59 | //////////////////////////////////////////////////////////////////////////////
|
---|
60 | t_pppClient* CLIENT = 0;
|
---|
61 |
|
---|
62 | // Static function returning thread-specific pointer
|
---|
63 | //////////////////////////////////////////////////////////////////////////////
|
---|
64 | t_pppClient* t_pppClient::instance() {
|
---|
65 | return CLIENT;
|
---|
66 | }
|
---|
67 |
|
---|
68 | // Constructor
|
---|
69 | //////////////////////////////////////////////////////////////////////////////
|
---|
70 | t_pppClient::t_pppClient(const t_pppOptions* opt) {
|
---|
71 | _opt = new t_pppOptions(*opt);
|
---|
72 | _log = new ostringstream();
|
---|
73 | CLIENT = this;
|
---|
74 | }
|
---|
75 |
|
---|
76 | // Destructor
|
---|
77 | //////////////////////////////////////////////////////////////////////////////
|
---|
78 | t_pppClient::~t_pppClient() {
|
---|
79 | delete _log;
|
---|
80 | delete _opt;
|
---|
81 | }
|
---|
82 |
|
---|
83 | //
|
---|
84 | //////////////////////////////////////////////////////////////////////////////
|
---|
85 | void t_pppClient::putEphemeris(const t_eph* eph) {
|
---|
86 | }
|
---|
87 |
|
---|
88 | //
|
---|
89 | //////////////////////////////////////////////////////////////////////////////
|
---|
90 | void t_pppClient::putOrbCorrections(const vector<t_orbCorr*>& corr) {
|
---|
91 | }
|
---|
92 |
|
---|
93 | //
|
---|
94 | //////////////////////////////////////////////////////////////////////////////
|
---|
95 | void t_pppClient::putClkCorrections(const vector<t_clkCorr*>& corr) {
|
---|
96 | }
|
---|
97 |
|
---|
98 | //
|
---|
99 | //////////////////////////////////////////////////////////////////////////////
|
---|
100 | void t_pppClient::putBiases(const vector<t_satBias*>& biases) {
|
---|
101 | }
|
---|
102 |
|
---|
103 | //
|
---|
104 | //////////////////////////////////////////////////////////////////////////////
|
---|
105 | void t_pppClient::processEpoch(const vector<t_satObs*>& satObs, t_output* output) {
|
---|
106 | }
|
---|
107 |
|
---|