- Timestamp:
- Apr 25, 2008, 12:35:06 PM (17 years ago)
- Location:
- trunk/BNS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnsoutf.cpp
r850 r851 6 6 * Class: bnsoutf 7 7 * 8 * Purpose: writes SP3 files8 * Purpose: Basis Class for File-Writers 9 9 * 10 10 * Author: L. Mervart … … 67 67 int step = intStr.left(indHlp-1).toInt(); 68 68 char ch = 'A' + datTim.time().hour(); 69 epoStr = ch;69 epoStr = QString("_") + ch; 70 70 if (datTim.time().minute() >= 60-step) { 71 71 epoStr += QString("%1").arg(60-step, 2, 10, QChar('0')); … … 92 92 else if (intStr == "1 hour") { 93 93 char ch = 'A' + datTim.time().hour(); 94 epoStr = ch;94 epoStr = QString("_") + ch; 95 95 if (datTim.time().hour() < 23) { 96 96 nextTime.setHMS(datTim.time().hour() + 1 , 0, 0); … … 103 103 } 104 104 else { 105 epoStr = " 0";105 epoStr = ""; 106 106 nextTime.setHMS(0, 0, 0); 107 107 nextDate = datTim.date().addDays(1); … … 117 117 // File Name according to RINEX Standards 118 118 //////////////////////////////////////////////////////////////////////////// 119 void bnsoutf::resolveFileName( const QDateTime& datTim) {119 void bnsoutf::resolveFileName(int GPSweek, const QDateTime& datTim) { 120 120 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 } 122 127 123 128 _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 126 132 + _ext).toAscii(); 127 133 } … … 144 150 // ------------ 145 151 if (!_headerWritten) { 146 resolveFileName( datTim);152 resolveFileName(GPSweek, datTim); 147 153 _out.open(_fName.data()); 148 154 _out.setf(ios::showpoint | ios::fixed); -
trunk/BNS/bnsoutf.h
r850 r851 23 23 const QString& intStr, 24 24 QDateTime* nextEpoch = 0); 25 void resolveFileName( const QDateTime& datTim);25 void resolveFileName(int GPSweek, const QDateTime& datTim); 26 26 void closeFile(); 27 27
Note:
See TracChangeset
for help on using the changeset viewer.