Changeset 3837 in ntrip


Ignore:
Timestamp:
Apr 12, 2012, 12:01:37 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
4 edited

Legend:

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

    r3722 r3837  
    169169      delete in;
    170170    }
     171    else if (key == "TIME OF FIRST OBS") {
     172      QTextStream in(value.toAscii(), QIODevice::ReadOnly);
     173      int year, month, day, hour, min;
     174      double sec;
     175      in >> year >> month >> day >> hour >> min >> sec;
     176      _startTime.set(year, month, day, hour, min, sec);
     177    }
    171178    if (maxLines > 0 && numLines == maxLines) {
    172179      break;
     
    248255      ttPrev = rnxEpo->tt;
    249256    }
     257    _stream->seek(0);
     258    _header.read(_stream);
     259  }
     260
     261  // Time of first observation
     262  // -------------------------
     263  if (!_header._startTime.valid()) {
     264    const t_rnxEpo* rnxEpo = nextEpoch();
     265    if (!rnxEpo) {
     266      throw QString("t_rnxObsFile: not enough epochs");
     267    }
     268    _header._startTime = rnxEpo->tt;
    250269    _stream->seek(0);
    251270    _header.read(_stream);
  • trunk/BNC/rinex/rnxobsfile.h

    r3718 r3837  
    109109    int                                   _wlFactorsL1[MAXPRN_GPS+1];
    110110    int                                   _wlFactorsL2[MAXPRN_GPS+1];
     111    bncTime                               _startTime;
    111112  };
    112113
  • trunk/BNC/rinex/teqcedit.cpp

    r3826 r3837  
    5050
    5151  bncSettings settings;
     52
     53  _obsFileNames = settings.value("teqcObsFile").toString().split("'", QString::SkipEmptyParts);
    5254}
    5355
     
    6365  cout << "Teqc Edit Running ..." << endl;
    6466
     67  QStringListIterator it(_obsFileNames);
     68  while (it.hasNext()) {
     69    t_rnxObsFile* rnxObsFile = new t_rnxObsFile(it.next());
     70  }
     71
    6572  emit finished();
    6673  deleteLater();
  • trunk/BNC/rinex/teqcedit.h

    r3826 r3837  
    2727
    2828#include <QtCore>
     29#include "rnxobsfile.h"
    2930
    3031class t_teqcEdit : public QThread {
     
    4647 
    4748 private:
     49  QStringList            _obsFileNames;
     50  QVector<t_rnxObsFile*> _rnxObsFiles;
    4851};
    4952
Note: See TracChangeset for help on using the changeset viewer.