Changeset 4013 in ntrip for trunk/BNC/rinex/rnxnavfile.cpp
- Timestamp:
- Apr 22, 2012, 2:19:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxnavfile.cpp
r4012 r4013 271 271 //////////////////////////////////////////////////////////////////////////// 272 272 void t_rnxNavFile::writeEph(const t_eph* eph) { 273 if (version() < 3.0) { 274 writeEphV2(eph); 275 } 276 else { 277 writeEphV3(eph); 278 } 279 } 280 281 // 282 //////////////////////////////////////////////////////////////////////////// 283 void t_rnxNavFile::writeEphV2(const t_eph* eph) { 284 } 285 286 // 287 //////////////////////////////////////////////////////////////////////////// 288 void t_rnxNavFile::writeEphV3(const t_eph* eph) { 289 290 bncTime tt(eph->GPSweek(), eph->GPSweeks()); 291 292 unsigned year, month, day, hour, min; 293 double sec; 294 tt.civil_date(year, month, day); 295 tt.civil_time(hour, min, sec); 296 297 QString dateStr; 298 QTextStream(&dateStr) << QString(" %1 %2 %3 %4 %5 %6") 299 .arg(year, 4) 300 .arg(month, 2, 10, QChar('0')) 301 .arg(day, 2, 10, QChar('0')) 302 .arg(hour, 2, 10, QChar('0')) 303 .arg(min, 2, 10, QChar('0')) 304 .arg(int(sec), 2, 10, QChar('0')); 305 306 *_stream << eph->prn() << dateStr << endl; 307 } 273 *_stream << eph->toString(version()); 274 }
Note:
See TracChangeset
for help on using the changeset viewer.