Changeset 6225 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Oct 11, 2014, 3:09:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.h
r6222 r6225 41 41 42 42 friend class t_rnxObsFile; 43 friend class bncRinex;44 43 45 44 public: … … 51 50 ~t_rnxObsHeader(); 52 51 52 double version() const {return _version;} 53 53 t_irc read(QTextStream* stream, int maxLines = 0); 54 54 void setDefault(const QString& markerName, int version); … … 58 58 int nTypes(char sys) const; 59 59 QString obsType(char sys, int index, double version = 0.0) const; 60 void write(QTextStream* stream, const QMap<QString, QString>* txtMap = 0) const; 61 bncTime startTime() const {return _startTime;} 62 void setStartTime(const bncTime& startTime) {_startTime = startTime;} 63 64 private: 60 65 QStringList obsTypesStrings() const; 61 void write(QTextStream* stream, const QMap<QString, QString>* txtMap = 0) const; 62 63 private: 64 float _version; 66 double _version; 65 67 double _interval; 66 68 QString _antennaNumber; … … 120 122 ~t_rnxObsFile(); 121 123 122 floatversion() const {return _header._version;}124 double version() const {return _header._version;} 123 125 double interval() const {return _header._interval;} 124 126 int numSys() const {return _header.numSys();} … … 171 173 static QString type3to2(char sys, const QString& typeV3); 172 174 175 static void writeEpoch(QTextStream* stream, const t_rnxObsHeader& header, const t_rnxEpo* epo) { 176 if (header.version() >= 3.0) { 177 writeEpochV3(stream, header, epo); 178 } 179 else { 180 writeEpochV2(stream, header, epo); 181 } 182 } 183 184 private: 173 185 static void writeEpochV2(QTextStream* stream, const t_rnxObsHeader& header, const t_rnxEpo* epo); 174 186 static void writeEpochV3(QTextStream* stream, const t_rnxObsHeader& header, const t_rnxEpo* epo); 175 176 private:177 187 t_rnxObsFile() {}; 178 188 void openRead(const QString& fileName); 179 189 void openWrite(const QString& fileName); 180 190 void close(); 181 void writeEpochV2(const t_rnxEpo* epo);182 void writeEpochV3(const t_rnxEpo* epo);183 191 t_rnxEpo* nextEpochV2(); 184 192 t_rnxEpo* nextEpochV3();
Note:
See TracChangeset
for help on using the changeset viewer.