Changeset 6119 in ntrip for trunk/BNC/src/rinex/rnxobsfile.h
- Timestamp:
- Sep 11, 2014, 2:06:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.h
r6118 r6119 39 39 40 40 class t_rnxObsHeader { 41 42 friend class t_rnxObsFile; 43 41 44 public: 42 static const double defaultRnxObsVersion2 = 2.11; 43 static const double defaultRnxObsVersion3 = 3.02; 45 static const double defaultRnxObsVersion2 = 2.11; 46 static const double defaultRnxObsVersion3 = 3.02; 47 static const QString defaultSystems; 44 48 45 49 t_rnxObsHeader(); 46 50 ~t_rnxObsHeader(); 47 51 48 t_irc 49 int nTypes(char sys) const;50 const QString& obsType(char sys, int index) const;51 QString List obsTypesStrings() const;52 void write(QTextStream* stream,53 52 t_irc read(QTextStream* stream, int maxLines = 0); 53 int numSys() const; 54 int nTypes(char sys) const; 55 QString obsType(char sys, int index) const; 56 QStringList obsTypesStrings() const; 57 void write(QTextStream* stream, const QMap<QString, QString>* txtMap = 0) const; 54 58 55 static const QString _emptyStr;59 private: 56 60 float _version; 57 61 double _interval; … … 70 74 ColumnVector _antBSG; 71 75 ColumnVector _xyz; 72 QVector<QString> _obsTypesV2; 73 QMap<char, QVector<QString> > _obsTypesV3; 76 QMap<char, QVector<QString> > _obsTypes; 74 77 int _wlFactorsL1[t_prn::MAXPRN_GPS+1]; 75 78 int _wlFactorsL2[t_prn::MAXPRN_GPS+1]; … … 84 87 } 85 88 89 class t_rnxObs { 90 public: 91 double value; 92 int lli; 93 int snr; 94 }; 95 86 96 class t_rnxSat { 87 97 public: 88 char satSys; 89 int satNum; 90 std::vector<double> obs; 91 std::vector<int> lli; 92 std::vector<int> snr; 98 t_prn prn; 99 QMap<QString, t_rnxObs> obs; 93 100 }; 94 101 … … 96 103 public: 97 104 void clear() { 105 tt.reset(); 98 106 rnxSat.clear(); 99 107 } … … 107 115 ~t_rnxObsFile(); 108 116 109 float 110 double 111 int nTypes(char sys) const {return _header.nTypes(sys);}112 const QString& fileName() const {return _fileName;}113 const QString& obsType(char sys, int index) const {return _header.obsType(sys, index);}114 115 const QString& 116 const QString& 117 const QString& 117 float version() const {return _header._version;} 118 double interval() const {return _header._interval;} 119 int numSys() const {return _header.numSys();} 120 int nTypes(char sys) const {return _header.nTypes(sys);} 121 const QString& fileName() const {return _fileName;} 122 QString obsType(char sys, int index) const {return _header.obsType(sys, index);} 123 const QString& antennaName() const {return _header._antennaName;} 124 const QString& markerName() const {return _header._markerName;} 125 const QString& receiverType() const {return _header._receiverType;} 118 126 119 127 void setInterval(double interval) {_header._interval = interval;} … … 154 162 155 163 private: 156 enum e_trafo {trafoNone, trafo2to2, trafo3to3, trafo2to3, trafo3to2};157 158 164 t_rnxObsFile() {}; 159 165 void openRead(const QString& fileName); … … 179 185 t_rnxEpo _currEpo; 180 186 bool _flgPowerFail; 181 e_trafo _trafo;182 187 }; 183 188
Note:
See TracChangeset
for help on using the changeset viewer.