Changeset 3035 in ntrip for trunk/BNC/RTCM3
- Timestamp:
- Feb 25, 2011, 1:35:15 PM (14 years ago)
- Location:
- trunk/BNC/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r3024 r3035 85 85 // Reopen Output File 86 86 //////////////////////////////////////////////////////////////////////// 87 void RTCM3coDecoder::reopen() { 88 89 if (!_fileNameSkl.isEmpty()) { 87 void RTCM3coDecoder::reopen(const QString& fileNameSkl, QString& fileName, 88 ofstream*& out) { 89 90 if (!fileNameSkl.isEmpty()) { 90 91 91 92 bncSettings settings; … … 96 97 settings.value("corrIntr").toString()); 97 98 98 QString fileName = _fileNameSkl99 QString fileNameHlp = fileNameSkl 99 100 + QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) 100 101 + hlpStr + datTim.toString(".yyC"); 101 102 102 if ( _fileName == fileName) {103 if (fileName == fileNameHlp) { 103 104 return; 104 105 } 105 106 else { 106 _fileName = fileName;107 } 108 109 delete _out;107 fileName = fileNameHlp; 108 } 109 110 delete out; 110 111 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) { 111 _out = new ofstream(_fileName.toAscii().data(),112 out = new ofstream( fileName.toAscii().data(), 112 113 ios_base::out | ios_base::app ); 113 114 } 114 115 else { 115 _out = new ofstream(_fileName.toAscii().data() );116 out = new ofstream( fileName.toAscii().data() ); 116 117 } 117 118 } … … 154 155 (_co.NumberOfGPSSat > 0 || _co.NumberOfGLONASSSat > 0) ) { 155 156 156 reopen(); 157 reopen(_fileNameSkl, _fileName, _out); 157 158 158 159 // Guess GPS week and sec using system time -
trunk/BNC/RTCM3/RTCM3coDecoder.h
r3024 r3035 47 47 static QStringList corrsToASCIIlines(int GPSweek, double GPSweeks, 48 48 const ClockOrbit& co, const Bias* bias); 49 49 static void reopen(const QString& fileNameSkl, QString& fileName, 50 std::ofstream*& out); 50 51 signals: 51 52 void newCorrLine(QString line, QString staID, long coTime); 52 53 53 54 private: 54 void reopen();55 55 void printLine(const QString& line, long coTime); 56 56
Note:
See TracChangeset
for help on using the changeset viewer.