[7235] | 1 | // Part of BNC, a utility for retrieving decoding and
|
---|
| 2 | // converting GNSS data streams from NTRIP broadcasters.
|
---|
| 3 | //
|
---|
| 4 | // Copyright (C) 2007
|
---|
| 5 | // German Federal Agency for Cartography and Geodesy (BKG)
|
---|
| 6 | // http://www.bkg.bund.de
|
---|
| 7 | // Czech Technical University Prague, Department of Geodesy
|
---|
| 8 | // http://www.fsv.cvut.cz
|
---|
| 9 | //
|
---|
| 10 | // Email: euref-ip@bkg.bund.de
|
---|
| 11 | //
|
---|
| 12 | // This program is free software; you can redistribute it and/or
|
---|
| 13 | // modify it under the terms of the GNU General Public License
|
---|
| 14 | // as published by the Free Software Foundation, version 2.
|
---|
| 15 | //
|
---|
| 16 | // This program is distributed in the hope that it will be useful,
|
---|
| 17 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 18 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 19 | // GNU General Public License for more details.
|
---|
| 20 | //
|
---|
| 21 | // You should have received a copy of the GNU General Public License
|
---|
| 22 | // along with this program; if not, write to the Free Software
|
---|
| 23 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
| 24 |
|
---|
| 25 | #ifndef PPPCLIENT_H
|
---|
| 26 | #define PPPCLIENT_H
|
---|
| 27 |
|
---|
| 28 | #include <vector>
|
---|
| 29 | #include <QtCore>
|
---|
| 30 |
|
---|
| 31 | #include "pppInclude.h"
|
---|
| 32 | #include "pppOptions.h"
|
---|
| 33 | #include "pppFilter.h"
|
---|
| 34 | #include "pppUtils.h"
|
---|
| 35 |
|
---|
| 36 | class bncEphUser;
|
---|
| 37 | class t_eph;
|
---|
| 38 |
|
---|
| 39 | namespace BNC_PPP {
|
---|
[7288] | 40 |
|
---|
[7235] | 41 | class t_pppClient : public interface_pppClient {
|
---|
| 42 | public:
|
---|
| 43 | t_pppClient(const t_pppOptions* opt);
|
---|
| 44 | ~t_pppClient();
|
---|
| 45 | void processEpoch(const std::vector<t_satObs*>& satObs, t_output* output);
|
---|
| 46 | void putEphemeris(const t_eph* eph);
|
---|
| 47 | void putTec(const t_vTec* vTec);
|
---|
[7288] | 48 | void putOrbCorrections(const std::vector<t_orbCorr*>& corr);
|
---|
| 49 | void putClkCorrections(const std::vector<t_clkCorr*>& corr);
|
---|
| 50 | void putCodeBiases(const std::vector<t_satCodeBias*>& satCodeBias);
|
---|
| 51 | void putPhaseBiases(const std::vector<t_satPhaseBias*>& satPhaseBias);
|
---|
[7235] | 52 | std::ostringstream& log() {return *_log;}
|
---|
| 53 | const t_pppOptions* opt() const {return _opt;}
|
---|
[7968] | 54 | void reset();
|
---|
[7235] | 55 |
|
---|
| 56 | private:
|
---|
| 57 | t_irc getSatPos(const bncTime& tt, const QString& prn, ColumnVector& xc, ColumnVector& vv);
|
---|
| 58 | void putNewObs(t_satData* satData);
|
---|
| 59 | t_irc cmpToT(t_satData* satData);
|
---|
| 60 | bncEphUser* _ephUser;
|
---|
| 61 | t_pppOptions* _opt;
|
---|
| 62 | t_epoData* _epoData;
|
---|
| 63 | t_pppFilter* _filter;
|
---|
| 64 | t_pppUtils* _pppUtils;
|
---|
[7288] | 65 | std::ostringstream* _log;
|
---|
[7609] | 66 | t_eph* _newEph;
|
---|
[7235] | 67 | };
|
---|
| 68 |
|
---|
| 69 | } // namespace
|
---|
| 70 |
|
---|
| 71 | #endif
|
---|