Changeset 3985 in ntrip


Ignore:
Timestamp:
Apr 21, 2012, 6:42:54 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
2 edited

Legend:

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

    r3983 r3985  
    124124// Change RINEX Header Content 
    125125////////////////////////////////////////////////////////////////////////////
    126 void t_reqcEdit::editRnxObsHeader(t_rnxObsFile& outObsFile) {
     126void t_reqcEdit::editRnxObsHeader(t_rnxObsFile& obsFile) {
    127127
    128128  bncSettings settings;
     
    130130  QString oldMarkerName   = settings.value("reqcOldMarkerName").toString();
    131131  QString newMarkerName   = settings.value("reqcNewMarkerName").toString();
     132  if (oldMarkerName.isEmpty() ||
     133      QRegExp(oldMarkerName).exactMatch(obsFile.markerName())) {
     134    obsFile.setMarkerName(newMarkerName);
     135  }
     136
    132137  QString oldAntennaName  = settings.value("reqcOldAntennaName").toString();
    133138  QString newAntennaName  = settings.value("reqcNewAntennaName").toString();
    134   QString oldReceiverName = settings.value("reqcOldReceiverName").toString();
    135   QString newReceiverName = settings.value("reqcNewReceiverName").toString();
     139  if (oldAntennaName.isEmpty() ||
     140      QRegExp(oldAntennaName).exactMatch(obsFile.antennaName())) {
     141    obsFile.setAntennaName(newAntennaName);
     142  }
    136143
     144  QString oldReceiverType = settings.value("reqcOldReceiverName").toString();
     145  QString newReceiverType = settings.value("reqcNewReceiverName").toString();
     146  if (oldReceiverType.isEmpty() ||
     147      QRegExp(oldReceiverType).exactMatch(obsFile.receiverType())) {
     148    obsFile.setReceiverType(newReceiverType);
     149  }
    137150}
  • trunk/BNC/rinex/reqcedit.h

    r3982 r3985  
    4747 
    4848 private:
    49   void editRnxObsHeader(t_rnxObsFile& outObsFile);
     49  void editRnxObsHeader(t_rnxObsFile& obsFile);
    5050
    5151  QStringList            _obsFileNames;
Note: See TracChangeset for help on using the changeset viewer.