Changeset 10525 in ntrip for trunk/BNC/src/rinex/reqcedit.cpp


Ignore:
Timestamp:
Aug 19, 2024, 4:15:53 PM (5 weeks ago)
Author:
stuerze
Message:

replacement of obsolete qt-class members

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcedit.cpp

    r9945 r10525  
    5858  _logFile        = 0;
    5959  _log            = 0;
    60   _obsFileNames   = settings.value("reqcObsFile").toString().split(",", QString::SkipEmptyParts);
     60  _obsFileNames   = settings.value("reqcObsFile").toString().split(",", Qt::SkipEmptyParts);
    6161  _outObsFileName = settings.value("reqcOutObsFile").toString();
    62   _navFileNames   = settings.value("reqcNavFile").toString().split(",", QString::SkipEmptyParts);
     62  _navFileNames   = settings.value("reqcNavFile").toString().split(",", Qt::SkipEmptyParts);
    6363  _outNavFileName = settings.value("reqcOutNavFile").toString();
    6464  int version     = settings.value("reqcRnxVersion").toInt();
     
    108108  // ---------------
    109109  if (_log) {
    110     *_log << QByteArray(78, '-') << endl;
     110    *_log << QByteArray(78, '-') << '\n';
    111111    *_log << "RINEX File Editing\n";
    112     *_log << QByteArray(78, '-') << endl;
     112    *_log << QByteArray(78, '-') << '\n';
    113113
    114114    *_log << QByteArray("Program").leftJustified(15) << ": "
    115           << BNC_CORE->pgmName() << endl;
     115          << BNC_CORE->pgmName() << '\n';
    116116    *_log << QByteArray("Run by").leftJustified(15) << ": "
    117           << BNC_CORE->userName() << endl;
     117          << BNC_CORE->userName() << '\n';
    118118    *_log << QByteArray("Date").leftJustified(15) << ": "
    119           << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << endl;
     119          << QDateTime::currentDateTime().toUTC().toString("yyyy-MM-dd hh:mm:ss") << '\n';
    120120    *_log << QByteArray("RINEX Version").leftJustified(15) << ": "
    121           << _rnxVersion << endl;
     121          << _rnxVersion << '\n';
    122122    *_log << QByteArray("Sampling").leftJustified(15) << ": "
    123           << _samplingRate << " sec" << endl;
     123          << _samplingRate << " sec" << '\n';
    124124    *_log << QByteArray("Start time").leftJustified(15) << ": "
    125125          << _begTime.datestr().c_str() << ' '
    126           << _begTime.timestr(0).c_str() << endl;
     126          << _begTime.timestr(0).c_str() << '\n';
    127127    *_log << QByteArray("End time").leftJustified(15) << ": "
    128128          << _endTime.datestr().c_str() << ' '
    129           << _endTime.timestr(0).c_str() << endl;
     129          << _endTime.timestr(0).c_str() << '\n';
    130130    *_log << QByteArray("Input Obs Files").leftJustified(15) << ": "
    131           << _obsFileNames.join(",") << endl;
     131          << _obsFileNames.join(",") << '\n';
    132132    *_log << QByteArray("Input Nav Files").leftJustified(15) << ": "
    133           << _navFileNames.join(",") << endl;
     133          << _navFileNames.join(",") << '\n';
    134134    *_log << QByteArray("Output Obs File").leftJustified(15) << ": "
    135           << _outObsFileName << endl;
     135          << _outObsFileName << '\n';
    136136    *_log << QByteArray("Output Nav File").leftJustified(15) << ": "
    137           << _outNavFileName << endl;
    138 
    139     *_log << QByteArray(78, '-') << endl;
     137          << _outNavFileName << '\n';
     138
     139    *_log << QByteArray(78, '-') << '\n';
    140140    _log->flush();
    141141  }
     
    186186          delete rnxObsFile;
    187187          if (log) {
    188             *log << "Error in rnxObsFile " << filePath.toLatin1().data() << endl;
     188            *log << "Error in rnxObsFile " << filePath.toLatin1().data() << '\n';
    189189          }
    190190        }
     
    199199      catch (...) {
    200200        if (log) {
    201           *log << "Error in rnxObsFile " << fileName.toLatin1().data() << endl;
    202         }
    203       }
    204     }
    205   }
    206   qStableSort(rnxObsFiles.begin(), rnxObsFiles.end(),
     201          *log << "Error in rnxObsFile " << fileName.toLatin1().data() << '\n';
     202        }
     203      }
     204    }
     205  }
     206  std::stable_sort(rnxObsFiles.begin(), rnxObsFiles.end(),
    207207              t_rnxObsFile::earlierStartTime);
    208208}
     
    242242  // ------------------------
    243243  bncSettings settings;
    244   QStringList useObsTypes = settings.value("reqcUseObsTypes").toString().split(" ", QString::SkipEmptyParts);
     244  QStringList useObsTypes = settings.value("reqcUseObsTypes").toString().split(" ", Qt::SkipEmptyParts);
    245245
    246246  // Put together all observation types
     
    318318      *_log << "Processing File: " << obsFile->fileName() << "  start: "
    319319            << obsFile->startTime().datestr().c_str() << ' '
    320             << obsFile->startTime().timestr(0).c_str() << endl;
     320            << obsFile->startTime().timestr(0).c_str() << '\n';
    321321    }
    322322    if (ii == 0) {
     
    367367    catch (QString str) {
    368368      if (_log) {
    369         *_log << "Exception " << str << endl;
     369        *_log << "Exception " << str << '\n';
    370370      }
    371371      else {
     
    376376    catch (...) {
    377377      if (_log) {
    378         *_log << "Exception unknown" << endl;
     378        *_log << "Exception unknown" << '\n';
    379379      }
    380380      else {
     
    540540  }
    541541  // TODO: enable user decision
    542   qStableSort(ephs.begin(), ephs.end(), t_eph::earlierTime);
    543   //qStableSort(ephs.begin(), ephs.end(), t_eph::prnSort);
     542  std::stable_sort(ephs.begin(), ephs.end(), t_eph::earlierTime);
     543  //std::stable_sort(ephs.begin(), ephs.end(), t_eph::prnSort);
    544544}
    545545
     
    785785        QString preferredAttrib;
    786786        if (preferredAttribListSys[ii].indexOf("&") != -1) {
    787           QStringList hlp = preferredAttribListSys[ii].split("&", QString::SkipEmptyParts);
     787          QStringList hlp = preferredAttribListSys[ii].split("&", Qt::SkipEmptyParts);
    788788          if (hlp.size() == 2 && hlp[0].contains(band)) {
    789789            preferredAttrib = hlp[1];
Note: See TracChangeset for help on using the changeset viewer.