source: ntrip/trunk/BNC/src/GPSDecoder.h@ 6462

Last change on this file since 6462 was 6137, checked in by mervart, 10 years ago
File size: 2.3 KB
RevLine 
[297]1// Part of BNC, a utility for retrieving decoding and
[464]2// converting GNSS data streams from NTRIP broadcasters.
[297]3//
[464]4// Copyright (C) 2007
[297]5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
[464]7// Czech Technical University Prague, Department of Geodesy
[297]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.
[35]24
[222]25#ifndef GPSDECODER_H
26#define GPSDECODER_H
27
[625]28#include <iostream>
[1218]29#include <vector>
30#include <string>
[35]31
[5884]32#include <QtCore>
33
[649]34#include "bncconst.h"
[5884]35#include "bnctime.h"
[6137]36#include "satObs.h"
[649]37
[5884]38class bncRinex;
39
[35]40class GPSDecoder {
[622]41 public:
[3528]42 GPSDecoder();
[5884]43 virtual ~GPSDecoder();
[622]44
[3528]45 virtual t_irc Decode(char* buffer, int bufLen,
46 std::vector<std::string>& errmsg) = 0;
47
48
[1567]49 virtual int corrGPSEpochTime() const {return -1;}
50
[3529]51 void initRinex(const QByteArray& staID, const QUrl& mountPoint,
52 const QByteArray& latitude, const QByteArray& longitude,
53 const QByteArray& nmea, const QByteArray& ntripVersion);
54
[6137]55 void dumpRinexEpoch(const t_satObs& obs, const QByteArray& format);
[3528]56
57 void setRinexReconnectFlag(bool flag);
58
[1268]59 struct t_antInfo {
60 enum t_type { ARP, APC };
61
62 t_antInfo() {
63 xx = yy = zz = height = 0.0;
64 type = ARP;
65 height_f = false;
66 message = 0;
67 };
68
69 double xx;
70 double yy;
71 double zz;
72 t_type type;
73 double height;
74 bool height_f;
75 int message;
76 };
77
[6137]78 QList<t_satObs> _obsList;
[3528]79 QList<int> _typeList; // RTCM message types
80 QStringList _antType; // RTCM antenna descriptor
81 QList<t_antInfo> _antList; // RTCM antenna XYZ
82 bncRinex* _rnx; // RINEX writer
[222]83};
[35]84
85#endif
Note: See TracBrowser for help on using the repository browser.