Changeset 10546 in ntrip
- Timestamp:
- Sep 25, 2024, 5:08:35 PM (3 weeks ago)
- Location:
- trunk/BNC/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppSatObs.cpp
r10525 r10546 76 76 // Select pseudo-ranges and phase observations 77 77 // ------------------------------------------- 78 QStringList priorList = _signalPriorities.split(" ", Q t::SkipEmptyParts);78 QStringList priorList = _signalPriorities.split(" ", QString::SkipEmptyParts); 79 79 string preferredAttrib; 80 80 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { … … 92 92 for (int ii = 0; ii < priorList.size(); ii++) { 93 93 if (priorList[ii].indexOf(":") != -1) { 94 hlp = priorList[ii].split(":", Q t::SkipEmptyParts);94 hlp = priorList[ii].split(":", QString::SkipEmptyParts); 95 95 if (hlp.size() == 2 && hlp[0].length() == 1 && hlp[0][0] == frqSys) { 96 hlp = hlp[1].split("&", Q t::SkipEmptyParts);96 hlp = hlp[1].split("&", QString::SkipEmptyParts); 97 97 } 98 98 if (hlp.size() == 2 && hlp[0].indexOf(frqNum) != -1) { -
trunk/BNC/src/RTCM3/bits.h
r10534 r10546 220 220 ////////////////////////////////////////////////////////// 221 221 #define SBASTOINT(type, value) static_cast<type>(round(value)) 222 222 223 #define SBASADDBITS(a, b) {bitbuffer = (bitbuffer<<(a)) \ 223 224 |(SBASTOINT(long long,b)&((1ULL<<a)-1)); \ … … 225 226 while(numbits >= 8) { \ 226 227 buffer[size++] = bitbuffer>>(numbits-8);numbits -= 8;}} 228 227 229 #define SBASADDBITSFLOAT(a,b,c) {long long i = SBASTOINT(long long,(b)/(c)); \ 228 230 SBASADDBITS(a,i)}; -
trunk/BNC/src/bncmain.cpp
r10542 r10546 458 458 QString val(argv[ii+2]); 459 459 if (val.indexOf(";") != -1) { 460 settings.setValue(key, val.split(";", Q t::SkipEmptyParts));460 settings.setValue(key, val.split(";", QString::SkipEmptyParts)); 461 461 } 462 462 else { -
trunk/BNC/src/bncsinextro.cpp
r10524 r10546 93 93 signalPriorities = "G:12&CWPSLX R:12&CP E:1&CBX E:5&QIX C:26&IQX"; 94 94 } 95 QStringList priorList = signalPriorities.split(" ", Q t::SkipEmptyParts);95 QStringList priorList = signalPriorities.split(" ", QString::SkipEmptyParts); 96 96 QStringList frqStrList; 97 97 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { … … 102 102 for (int ii = 0; ii < priorList.size(); ii++) { 103 103 if (priorList[ii].indexOf(":") != -1) { 104 hlp = priorList[ii].split(":", Q t::SkipEmptyParts);104 hlp = priorList[ii].split(":", QString::SkipEmptyParts); 105 105 if (hlp.size() == 2 && hlp[0].length() == 1 && hlp[0][0] == frqSys) { 106 hlp = hlp[1].split("&", Q t::SkipEmptyParts);106 hlp = hlp[1].split("&", QString::SkipEmptyParts); 107 107 } 108 108 if (hlp.size() == 2 && hlp[0].indexOf(frqNum) != -1) { -
trunk/BNC/src/combination/bnccomb.cpp
r10525 r10546 176 176 newAC->name = hlp[1]; 177 177 newAC->weightFactor = hlp[2].toDouble(); 178 newAC->excludeSats = hlp[3].split(QRegExp("[ ,]"), Q t::SkipEmptyParts);178 newAC->excludeSats = hlp[3].split(QRegExp("[ ,]"), QString::SkipEmptyParts); 179 179 newAC->isAPC = bool(newAC->mountPoint.mid(0,4) == "SSRA"); 180 180 QMapIterator<char, unsigned> itSys(_cmbSysPrn); -
trunk/BNC/src/pppMain.cpp
r10524 r10546 407 407 408 408 QString priorStr = QString::fromStdString(opt->_signalPriorities); 409 QStringList priorList = priorStr.split(" ", Q t::SkipEmptyParts);409 QStringList priorList = priorStr.split(" ", QString::SkipEmptyParts); 410 410 QStringList hlpList; 411 411 vector<char> systems = opt->systems(); … … 414 414 for (int ii = 0; ii < priorList.size(); ii++) { 415 415 if (priorList[ii].indexOf(":") != -1) { 416 hlpList = priorList[ii].split(":", Q t::SkipEmptyParts);416 hlpList = priorList[ii].split(":", QString::SkipEmptyParts); 417 417 if (hlpList.size() == 2 && hlpList[0].length() == 1 && hlpList[0][0] == sys) { 418 hlpList = hlpList[1].split("&", Q t::SkipEmptyParts);418 hlpList = hlpList[1].split("&", QString::SkipEmptyParts); 419 419 if (hlpList.size() == 2) { 420 420 for (int jj = 0; jj < hlpList[0].size(); jj++) { -
trunk/BNC/src/rinex/reqcanalyze.cpp
r10525 r10546 66 66 _log = 0; 67 67 _currEpo = 0; 68 _obsFileNames = settings.value("reqcObsFile").toString().split(",", Q t::SkipEmptyParts);69 _navFileNames = settings.value("reqcNavFile").toString().split(",", Q t::SkipEmptyParts);68 _obsFileNames = settings.value("reqcObsFile").toString().split(",", QString::SkipEmptyParts); 69 _navFileNames = settings.value("reqcNavFile").toString().split(",", QString::SkipEmptyParts); 70 70 _reqcPlotSignals = settings.value("reqcSkyPlotSignals").toString(); 71 71 _defaultSignalTypes << "G:1&2&5" << "R:1&2&3" << "J:1&2" << "E:1&5" << "S:1&5" << "C:2&6" << "I:5&9"; … … 149 149 void t_reqcAnalyze::analyzePlotSignals() { 150 150 151 QStringList signalsOpt = _reqcPlotSignals.split(" ", Q t::SkipEmptyParts);151 QStringList signalsOpt = _reqcPlotSignals.split(" ", QString::SkipEmptyParts); 152 152 153 153 for (int ii = 0; ii < signalsOpt.size(); ii++) { 154 QStringList input = signalsOpt.at(ii).split(QRegExp("[:&]"), Q t::SkipEmptyParts);154 QStringList input = signalsOpt.at(ii).split(QRegExp("[:&]"), QString::SkipEmptyParts); 155 155 if (input.size() > 1 && input[0].length() == 1) { 156 156 char system = input[0].toLatin1().constData()[0]; -
trunk/BNC/src/rinex/reqcedit.cpp
r10525 r10546 58 58 _logFile = 0; 59 59 _log = 0; 60 _obsFileNames = settings.value("reqcObsFile").toString().split(",", Q t::SkipEmptyParts);60 _obsFileNames = settings.value("reqcObsFile").toString().split(",", QString::SkipEmptyParts); 61 61 _outObsFileName = settings.value("reqcOutObsFile").toString(); 62 _navFileNames = settings.value("reqcNavFile").toString().split(",", Q t::SkipEmptyParts);62 _navFileNames = settings.value("reqcNavFile").toString().split(",", QString::SkipEmptyParts); 63 63 _outNavFileName = settings.value("reqcOutNavFile").toString(); 64 64 int version = settings.value("reqcRnxVersion").toInt(); … … 242 242 // ------------------------ 243 243 bncSettings settings; 244 QStringList useObsTypes = settings.value("reqcUseObsTypes").toString().split(" ", Q t::SkipEmptyParts);244 QStringList useObsTypes = settings.value("reqcUseObsTypes").toString().split(" ", QString::SkipEmptyParts); 245 245 246 246 // Put together all observation types … … 785 785 QString preferredAttrib; 786 786 if (preferredAttribListSys[ii].indexOf("&") != -1) { 787 QStringList hlp = preferredAttribListSys[ii].split("&", Q t::SkipEmptyParts);787 QStringList hlp = preferredAttribListSys[ii].split("&", QString::SkipEmptyParts); 788 788 if (hlp.size() == 2 && hlp[0].contains(band)) { 789 789 preferredAttrib = hlp[1]; -
trunk/BNC/src/rinex/rnxnavfile.cpp
r10525 r10546 158 158 } 159 159 160 QStringList hlp = line.split(QRegExp("\\s+"), Q t::SkipEmptyParts);160 QStringList hlp = line.split(QRegExp("\\s+"), QString::SkipEmptyParts); 161 161 QString firstStr = hlp.at(0); 162 162 QString prn; … … 317 317 } 318 318 else if (it.key() == "RUN BY DATE") { 319 runByDate = it.value().split("\\n", Q t::SkipEmptyParts);319 runByDate = it.value().split("\\n", QString::SkipEmptyParts); 320 320 } 321 321 else if (it.key() == "COMMENT") { 322 comments = it.value().split("\\n", Q t::SkipEmptyParts);322 comments = it.value().split("\\n", QString::SkipEmptyParts); 323 323 } 324 324 } -
trunk/BNC/src/rinex/rnxobsfile.cpp
r10532 r10546 505 505 for (int iType = 0; iType < useObsTypes->size(); iType++) { 506 506 if (useObsTypes->at(iType).indexOf(":") != -1) { 507 QStringList hlp = useObsTypes->at(iType).split(":", Q t::SkipEmptyParts);507 QStringList hlp = useObsTypes->at(iType).split(":", QString::SkipEmptyParts); 508 508 if (hlp.size() == 2 && hlp[0].length() == 1) { 509 509 if (_version >= 3.0) { … … 551 551 else { 552 552 foreach (const QString &str, *phaseShifts) { 553 QStringList hlp = str.split("_", Q t::SkipEmptyParts);554 QStringList hlp1 = hlp.last().split(":", Q t::SkipEmptyParts);553 QStringList hlp = str.split("_", QString::SkipEmptyParts); 554 QStringList hlp1 = hlp.last().split(":", QString::SkipEmptyParts); 555 555 QString type = hlp.first(); 556 556 double shift = hlp1.first().toDouble(); … … 577 577 else { 578 578 foreach (const QString &str, *gloBiases) { 579 QStringList hlp = str.split(":", Q t::SkipEmptyParts);579 QStringList hlp = str.split(":", QString::SkipEmptyParts); 580 580 QString type = hlp.first();; 581 581 double value = hlp.last().toDouble(); … … 590 590 else { 591 591 foreach (const QString &str, *gloSlots) { 592 QStringList hlp = str.split(":", Q t::SkipEmptyParts);592 QStringList hlp = str.split(":", QString::SkipEmptyParts); 593 593 QString sat = hlp.first(); 594 594 int slot = hlp.last().toInt(); … … 631 631 } 632 632 else if (it.key() == "RUN BY DATE") { 633 runByDate = it.value().split("\\n", Q t::SkipEmptyParts);633 runByDate = it.value().split("\\n", QString::SkipEmptyParts); 634 634 } 635 635 else if ((it.key().indexOf("COMMENT")) != -1) { 636 newComments += it.value().split("\\n", Q t::SkipEmptyParts);636 newComments += it.value().split("\\n", QString::SkipEmptyParts); 637 637 } 638 638 } … … 1428 1428 for (int ii = 0; ii < preferredAttribList.size(); ii++) { 1429 1429 if (preferredAttribList[ii].indexOf("&") != -1) { 1430 QStringList hlp = preferredAttribList[ii].split("&", Q t::SkipEmptyParts);1430 QStringList hlp = preferredAttribList[ii].split("&", QString::SkipEmptyParts); 1431 1431 if (hlp.size() == 2 && hlp[0].contains(typeV2[1])) { 1432 1432 preferredAttrib = hlp[1]; … … 1677 1677 // --------------------------------------------------- 1678 1678 if (reqcAction == "Edit/Concatenate") { 1679 priorList = settings.value("reqcV2Priority").toString().split(" ", Q t::SkipEmptyParts);1679 priorList = settings.value("reqcV2Priority").toString().split(" ", QString::SkipEmptyParts); 1680 1680 } 1681 1681 … … 1683 1683 // ---------------------------- 1684 1684 else { 1685 priorList = settings.value("rnxV2Priority").toString().split(" ", Q t::SkipEmptyParts);1685 priorList = settings.value("rnxV2Priority").toString().split(" ", QString::SkipEmptyParts); 1686 1686 } 1687 1687 … … 1689 1689 for (int ii = 0; ii < priorList.size(); ii++) { 1690 1690 if (priorList[ii].indexOf(":") != -1) { 1691 QStringList hlp = priorList[ii].split(":", Q t::SkipEmptyParts);1691 QStringList hlp = priorList[ii].split(":", QString::SkipEmptyParts); 1692 1692 if (hlp.size() == 2 && hlp[0].length() == 1 && hlp[0][0] == sys) { 1693 1693 result.append(hlp[1]); -
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r10543 r10546 331 331 if (nextEpoch != -1 && nextEpoch < iEpoEnd) { 332 332 rtnetStreamBuffer = rtnetStreamBuffer.mid(nextEpoch, nextEpochEnd); 333 lines = rtnetStreamBuffer.split('\n', Q t::SkipEmptyParts);333 lines = rtnetStreamBuffer.split('\n', QString::SkipEmptyParts); 334 334 if (lines.size() > 2) { 335 335 decodeRtnetEpoch(lines); … … 343 343 } 344 344 345 lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', Q t::SkipEmptyParts);345 lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', QString::SkipEmptyParts); 346 346 347 347 _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3);
Note:
See TracChangeset
for help on using the changeset viewer.