Changeset 535 in ntrip
- Timestamp:
- Oct 21, 2007, 6:36:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r534 r535 147 147 } 148 148 149 // 149 // New GPS Ephemeris 150 150 //////////////////////////////////////////////////////////////////////////// 151 151 void bncApp::slotNewGPSEph(gpsephemeris* gpseph) { … … 171 171 } 172 172 173 // 173 // New Glonass Ephemeris 174 174 //////////////////////////////////////////////////////////////////////////// 175 175 void bncApp::slotNewGlonassEph(glonassephemeris* glonasseph) { … … 197 197 } 198 198 199 // 199 // Print Header of the output File(s) 200 200 //////////////////////////////////////////////////////////////////////////// 201 201 void bncApp::printEphHeader() { 202 203 QSettings settings; 202 204 203 205 // Initialization 204 206 // -------------- 205 207 if (_rinexVers == 0) { 206 QSettings settings;207 208 208 209 if ( Qt::CheckState(settings.value("ephV3").toInt()) == Qt::Checked) { … … 229 230 QDate date = QDate::currentDate(); 230 231 231 QString ephFileNameGPS = _ephPath + "GPS_" + 232 QString hlp = (_rinexVers == 3) ? "MIX_" : "GPS_"; 233 QString ephFileNameGPS = _ephPath + hlp + 232 234 QString("%1").arg(date.dayOfYear(), 3, 10, QChar('0')) + 233 235 date.toString("0.yyN"); … … 243 245 delete _ephFileGPS; 244 246 247 QFlags<QIODevice::OpenModeFlag> appendFlagGPS; 248 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked && 249 QFile::exists(ephFileNameGPS) ) { 250 appendFlagGPS = QIODevice::Append; 251 } 252 245 253 _ephFileGPS = new QFile(ephFileNameGPS); 246 _ephFileGPS->open(QIODevice::WriteOnly );254 _ephFileGPS->open(QIODevice::WriteOnly | appendFlagGPS); 247 255 _ephStreamGPS = new QTextStream(); 248 256 _ephStreamGPS->setDevice(_ephFileGPS); … … 260 268 delete _ephFileGlonass; 261 269 270 QFlags<QIODevice::OpenModeFlag> appendFlagGlonass; 271 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked && 272 QFile::exists(ephFileNameGlonass) ) { 273 appendFlagGlonass = QIODevice::Append; 274 } 275 262 276 _ephFileGlonass = new QFile(ephFileNameGlonass); 263 _ephFileGlonass->open(QIODevice::WriteOnly );277 _ephFileGlonass->open(QIODevice::WriteOnly | appendFlagGlonass); 264 278 _ephStreamGlonass = new QTextStream(); 265 279 _ephStreamGlonass->setDevice(_ephFileGlonass); … … 269 283 // ------------------------ 270 284 if (_rinexVers == 3) { 285 286 if (appendFlagGPS & QIODevice::Append) { 287 return; 288 } 289 271 290 QString line; 272 291 … … 292 311 } 293 312 294 // 313 // Print One GPS Ephemeris 295 314 //////////////////////////////////////////////////////////////////////////// 296 315 void bncApp::printGPSEph(gpsephemeris* ep) { … … 358 377 } 359 378 360 // 379 // Print One Glonass Ephemeris 361 380 //////////////////////////////////////////////////////////////////////////// 362 381 void bncApp::printGlonassEph(glonassephemeris* ep) {
Note:
See TracChangeset
for help on using the changeset viewer.