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

Last change on this file since 6429 was 6395, checked in by mervart, 10 years ago
File size: 2.0 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 BNCEPHUSER_H
26#define BNCEPHUSER_H
27
28#include <QtCore>
29#include <newmat.h>
30
31#include "bncconst.h"
32#include "bnctime.h"
33#include "ephemeris.h"
34
35extern "C" {
36# include "clock_orbit_rtcm.h"
37}
38
39class bncEphUser : public QObject {
40 Q_OBJECT
41
42 public:
43 bncEphUser(bool connectSlots = true);
44 virtual ~bncEphUser();
45
46 class t_ephPair {
47 public:
48 t_ephPair(t_eph* lastEph) {
49 last = lastEph;
50 prev = 0;
51 }
52 ~t_ephPair() {
53 delete last;
54 delete prev;
55 }
56 t_eph* last;
57 t_eph* prev;
58 };
59
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 }
68
69 t_irc putNewEph(t_eph* newEph);
70
71 public slots:
72 void slotNewEphGPS(gpsephemeris gpseph);
73 void slotNewEphGlonass(glonassephemeris gloeph);
74 void slotNewEphGalileo(galileoephemeris galeph);
75 void slotNewEphSBAS(sbasephemeris sbaseph);
76
77 protected:
78 virtual void ephBufferChanged() {}
79 QMutex _mutex;
80 QMap<QString, t_ephPair*> _eph;
81};
82
83#endif
Note: See TracBrowser for help on using the repository browser.