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

Last change on this file since 6432 was 6432, checked in by mervart, 9 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();
44 bncEphUser(bool connectSlots);
45 virtual ~bncEphUser();
46
47 class t_ephPair {
48 public:
49 t_ephPair(t_eph* lastEph) {
50 last = lastEph;
51 prev = 0;
52 }
53 ~t_ephPair() {
54 delete last;
55 delete prev;
56 }
57 t_eph* last;
58 t_eph* prev;
59 };
60
61 const t_ephPair* ephPair(const QString& prn) {
62 if (_eph.contains(prn)) {
63 return _eph[prn];
64 }
65 else {
66 return 0;
67 }
68 }
69
70 t_irc putNewEph(t_eph* newEph);
71
72 public slots:
73 void slotNewGPSEph(t_ephGPS);
74 void slotNewGlonassEph(t_ephGlo);
75 void slotNewGalileoEph(t_ephGal);
76 void slotNewSBASEph(t_ephSBAS);
77
78 protected:
79 virtual void ephBufferChanged() {}
80 QMutex _mutex;
81 QMap<QString, t_ephPair*> _eph;
82};
83
84#endif
Note: See TracBrowser for help on using the repository browser.