Changeset 851 in ntrip


Ignore:
Timestamp:
Apr 25, 2008, 12:35:06 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnsoutf.cpp

    r850 r851  
    66 * Class:      bnsoutf
    77 *
    8  * Purpose:    writes SP3 files
     8 * Purpose:    Basis Class for File-Writers
    99 *
    1010 * Author:     L. Mervart
     
    6767    int step = intStr.left(indHlp-1).toInt();
    6868    char ch = 'A' + datTim.time().hour();
    69     epoStr = ch;
     69    epoStr = QString("_") + ch;
    7070    if (datTim.time().minute() >= 60-step) {
    7171      epoStr += QString("%1").arg(60-step, 2, 10, QChar('0'));
     
    9292  else if (intStr == "1 hour") {
    9393    char ch = 'A' + datTim.time().hour();
    94     epoStr = ch;
     94    epoStr = QString("_") + ch;
    9595    if (datTim.time().hour() < 23) {
    9696      nextTime.setHMS(datTim.time().hour() + 1 , 0, 0);
     
    103103  }
    104104  else {
    105     epoStr = "0";
     105    epoStr = "";
    106106    nextTime.setHMS(0, 0, 0);
    107107    nextDate = datTim.date().addDays(1);
     
    117117// File Name according to RINEX Standards
    118118////////////////////////////////////////////////////////////////////////////
    119 void bnsoutf::resolveFileName(const QDateTime& datTim) {
     119void bnsoutf::resolveFileName(int GPSweek, const QDateTime& datTim) {
    120120
    121   QString hlpStr = nextEpochStr(datTim, _intr, &_nextCloseEpoch);
     121  QString epoStr = nextEpochStr(datTim, _intr, &_nextCloseEpoch);
     122
     123  int dayOfWeek = datTim.date().dayOfWeek();
     124  if (dayOfWeek == 7) {
     125    dayOfWeek = 0;
     126  }
    122127
    123128  _fName = (_prep
    124             + QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0'))
    125             + hlpStr
     129            + QString("%1").arg(GPSweek)
     130            + QString("%1").arg(dayOfWeek)
     131            + epoStr
    126132            + _ext).toAscii();
    127133}
     
    144150  // ------------
    145151  if (!_headerWritten) {
    146     resolveFileName(datTim);
     152    resolveFileName(GPSweek, datTim);
    147153    _out.open(_fName.data());
    148154    _out.setf(ios::showpoint | ios::fixed);
  • trunk/BNS/bnsoutf.h

    r850 r851  
    2323                       const QString& intStr,
    2424                       QDateTime* nextEpoch = 0);
    25   void resolveFileName(const QDateTime& datTim);
     25  void resolveFileName(int GPSweek, const QDateTime& datTim);
    2626  void closeFile();
    2727
Note: See TracChangeset for help on using the changeset viewer.