source: ntrip/trunk/BNC/upload/bncrtnetdecoder.h@ 3172

Last change on this file since 3172 was 3172, checked in by mervart, 13 years ago
File size: 2.2 KB
Line 
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 BNCRTNETDECODER_H
26#define BNCRTNETDECODER_H
27
28#include <fstream>
29#include <QtCore>
30#include "bncephuser.h"
31#include "RTCM/GPSDecoder.h"
32
33class bncRtnetDecoder: public GPSDecoder, public bncEphUser {
34 public:
35 bncRtnetDecoder();
36 ~bncRtnetDecoder();
37 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg);
38 private:
39 void readEpochTime(const QString& line);
40 void processSatellite(int iCaster, const QString trafo,
41 bool CoM, t_eph* ep, int GPSweek,
42 double GPSweeks, const QString& prn,
43 const ColumnVector& xx,
44 struct ClockOrbit::SatData* sd,
45 QString& outLine);
46 void crdTrafo(int GPSWeek, ColumnVector& xyz,
47 const QString& trafo);
48
49 QString _buffer;
50
51 int _GPSweek;
52 double _GPSweeks;
53 int _year;
54 int _month;
55 int _day;
56 int _hour;
57 int _min;
58 double _sec;
59
60 double _dx;
61 double _dy;
62 double _dz;
63 double _dxr;
64 double _dyr;
65 double _dzr;
66 double _ox;
67 double _oy;
68 double _oz;
69 double _oxr;
70 double _oyr;
71 double _ozr;
72 double _sc;
73 double _scr;
74 double _t0;
75};
76
77#endif // include blocker
Note: See TracBrowser for help on using the repository browser.