source: ntrip/trunk/BNC/src/bncephuser.h@ 6212

Last change on this file since 6212 was 6141, checked in by mervart, 10 years ago
File size: 1.9 KB
RevLine 
[2904]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 BNCEPHUSER_H
26#define BNCEPHUSER_H
27
28#include <QtCore>
29#include <newmat.h>
30
31#include "bncconst.h"
32#include "bnctime.h"
[5738]33#include "ephemeris.h"
[2904]34
[2911]35extern "C" {
[6139]36# include "clock_orbit_rtcm.h"
[2911]37}
38
[2904]39class bncEphUser : public QObject {
40 Q_OBJECT
41
42 public:
[3640]43 bncEphUser(bool connectSlots = true);
[3247]44 virtual ~bncEphUser();
[2904]45
46 class t_ephPair {
47 public:
[3012]48 t_ephPair(t_eph* lastEph) {
49 last = lastEph;
[2904]50 prev = 0;
51 }
52 ~t_ephPair() {
53 delete last;
54 delete prev;
55 }
56 t_eph* last;
57 t_eph* prev;
58 };
59
[3209]60 const t_ephPair* ephPair(const QString& prn) {
61 if (_eph.contains(prn)) {
62 return _eph[prn];
63 }
64 else {
65 return 0;
66 }
67 }
[3182]68
[3671]69 t_irc putNewEph(t_eph* eph);
[3670]70
[3182]71 public slots:
72 void slotNewEphGPS(gpsephemeris gpseph);
73 void slotNewEphGlonass(glonassephemeris gloeph);
74 void slotNewEphGalileo(galileoephemeris galeph);
75
76 protected:
[3246]77 virtual void ephBufferChanged() {}
[2904]78 QMutex _mutex;
79 QMap<QString, t_ephPair*> _eph;
80};
81
82#endif
Note: See TracBrowser for help on using the repository browser.