Changeset 4004 in ntrip


Ignore:
Timestamp:
Apr 22, 2012, 11:49:44 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/reqcedit.cpp

    r4003 r4004  
    248248  qStableSort(_ephs.begin(), _ephs.end(), t_eph::earlierTime);
    249249
    250 }
     250  // Initialize output observation file
     251  // ----------------------------------
     252  t_rnxNavFile outNavFile(_outNavFileName, t_rnxNavFile::output);
     253 
     254  // Loop over all ephemerides
     255  // -------------------------
     256  for (int ii = 0; ii < _ephs.size(); ii++) {
     257    const t_eph* eph = _ephs[ii];
     258    if (ii == 0) {
     259      outNavFile.writeHeader();
     260    }
     261    outNavFile.writeEph(eph);
     262  }
     263}
  • trunk/BNC/rinex/rnxnavfile.cpp

    r3999 r4004  
    235235  return 0;
    236236}
     237
     238//
     239////////////////////////////////////////////////////////////////////////////
     240void t_rnxNavFile::writeHeader() {
     241  *_stream << "Writing header ..." << endl;
     242}
     243
     244//
     245////////////////////////////////////////////////////////////////////////////
     246void t_rnxNavFile::writeEph(const t_eph* eph) {
     247  *_stream << "PRN = " << eph->prn() << endl;
     248}
  • trunk/BNC/rinex/rnxnavfile.h

    r4000 r4004  
    6060  float version() const {return _header.version();}
    6161  bool  glonass() const {return _header.glonass();}
     62  void  writeHeader();
     63  void  writeEph(const t_eph* eph);
    6264
    6365 protected:
Note: See TracChangeset for help on using the changeset viewer.