Changeset 10091 in ntrip for trunk/BNC/src/bnccore.cpp
- Timestamp:
- Jun 16, 2023, 6:51:52 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r10073 r10091 226 226 #endif 227 227 printEphHeader(); 228 //printEphHeader(eph->receptStaID()); 228 229 printEph(*eph, (ircPut == success)); 229 230 return success; … … 272 273 // Print Header of the output File(s) 273 274 //////////////////////////////////////////////////////////////////////////// 274 void t_bncCore::printEphHeader( ) {275 void t_bncCore::printEphHeader(QString receptStaID) { 275 276 276 277 bncSettings settings; 277 278 QStringList comments; 279 bool separateFiles = false;// Qt::CheckState(settings.value("ephFilePerStation").toInt()); 278 280 279 281 QListIterator<QString> it(settings.value("mountPoints").toStringList()); … … 284 286 QUrl url(hlp[0]); 285 287 QString decoder = hlp[1]; 286 comments.append("Source: " + decoder + 287 " " + QUrl::toAce(url.host()) + 288 "/" + url.path().mid(1).toLatin1()); 288 if (!separateFiles) { 289 comments.append("Source: " + decoder + 290 " " + QUrl::toAce(url.host()) + 291 "/" + url.path().mid(1).toLatin1()); 292 } 289 293 } 290 294 … … 311 315 QDateTime datTim = currentDateAndTimeGPS(); 312 316 313 QString ephFileNameGPS = _ephPath + "BRDC"; 317 QString ephFileNameGPS = _ephPath; // + "BRDC"; 318 319 (separateFiles) ? ephFileNameGPS += receptStaID.left(4) : 320 ephFileNameGPS += "BRDC"; 314 321 315 322 QString hlpStr = bncRinex::nextEpochStr(datTim, … … 320 327 QString monNum = "0"; 321 328 QString recNum = "0"; 329 if (separateFiles && receptStaID.size() >= 9) { 330 monNum = receptStaID.mid(4,1); 331 recNum = receptStaID.mid(5,1); 332 country = receptStaID.mid(6,3); 333 } 322 334 ephFileNameGPS += QString("%1").arg(monNum, 1, 10) + 323 335 QString("%1").arg(recNum, 1, 10) +
Note:
See TracChangeset
for help on using the changeset viewer.