source: ntrip/trunk/BNC/src/rinex/rnxnavfile.h@ 10614

Last change on this file since 10614 was 10614, checked in by stuerze, 11 hours ago

bug fixes egarding RINEX Editing and QC

File size: 2.9 KB
RevLine 
[3645]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 RNXNAVFILE_H
26#define RNXNAVFILE_H
[9765]27#include <iostream>
[3746]28#include <queue>
[3645]29#include <QtCore>
30#include "bncconst.h"
[3748]31#include "bnctime.h"
[8354]32#include "ephemeris.h"
[3645]33
34class t_pppOpt;
35class bncPPPclient;
[3659]36class t_eph;
[9765]37using namespace std;
[8127]38#define defaultRnxNavVersion2 2.11
[9366]39#define defaultRnxNavVersion3 3.05
[10587]40#define defaultRnxNavVersion4 4.02
[8127]41
[3645]42class t_rnxNavFile {
[3657]43
[3999]44 public:
45 enum e_inpOut {input, output};
46 private:
[3657]47 class t_rnxNavHeader {
48 public:
49 t_rnxNavHeader();
50 ~t_rnxNavHeader();
[4008]51 t_irc read(QTextStream* stream);
52 double _version;
53 bool _glonass;
[10587]54 t_eph::e_system _satSys;
55 QStringList _comments;
56 QStringList _runByDate;
[3657]57 };
[7999]58
[3645]59 public:
[3999]60 t_rnxNavFile(const QString& fileName, e_inpOut inpOut);
[3645]61 ~t_rnxNavFile();
[7169]62 t_eph* getNextEph(const bncTime& tt, const QMap<QString, unsigned int>* corrIODs);
[4000]63 const std::vector<t_eph*> ephs() const {return _ephs;}
[10614]64 const QString& fileName() const {return _fileName;}
[4008]65 double version() const {return _header._version;}
66 void setVersion(double version) {_header._version = version;}
67 bool glonass() const {return _header._glonass;}
[7999]68 QStringList comments() const {return _header._comments;}
[9945]69 QStringList runByDate() const {return _header._runByDate;}
[10587]70 t_eph::e_system satSystem() const {return _header._satSys;}
[7999]71 void setGlonass(bool glo) {_header._glonass = glo;}
[10587]72 void setGnssTypeV3(t_eph::e_system system) {_header._satSys = system;}
[9765]73 void writeHeader(const QMap<QString, QString>* txtMap = 0, int numMergedFiles = 0, int leapSecs = 0);
[4008]74 void writeEph(const t_eph* eph);
[3645]75
[3999]76 protected:
77 t_rnxNavFile() {};
78 void openRead(const QString& fileName);
79 void openWrite(const QString& fileName);
80 void close();
81
[3645]82 private:
[3758]83 void read(QTextStream* stream);
84
[3999]85 e_inpOut _inpOut;
86 QFile* _file;
87 QString _fileName;
88 QTextStream* _stream;
[3758]89 std::vector<t_eph*> _ephs;
90 t_rnxNavHeader _header;
[3645]91};
92
93#endif
Note: See TracBrowser for help on using the repository browser.