Changeset 160 in ntrip for trunk/BNC/bnccaster.cpp


Ignore:
Timestamp:
Sep 12, 2006, 8:39:13 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r142 r160  
    8383  long newTime = obs->GPSWeek * 7*24*3600 + obs->GPSWeeks;
    8484
     85  // Rename the Station
     86  // ------------------
     87  strncpy(obs->StatID, staID.constData(),sizeof(obs->StatID));
     88       
     89  // Prepare RINEX Output
     90  // --------------------
     91  if (_rinexWriters.find(obs->StatID) == _rinexWriters.end()) {
     92    _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID));
     93  }
     94  bncRinex* rnx = _rinexWriters.find(obs->StatID).value();
     95  rnx->deepCopy(obs);
     96  rnx->dumpEpoch(newTime);
     97
    8598  // First time, set the _lastDumpSec immediately
    8699  // --------------------------------------------
     
    98111  }
    99112
    100   // Rename the station and save the observation
    101   // -------------------------------------------
    102   strncpy(obs->StatID, staID.constData(),sizeof(obs->StatID));
     113  // Save the observation
     114  // --------------------
    103115  _epochs->insert(newTime, obs);
    104116
     
    196208          }
    197209        }
    198        
    199         // Prepare RINEX Output
    200         // --------------------
    201         if (_rinexWriters.find(obs->StatID) == _rinexWriters.end()) {
    202           _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID));
    203         }
    204         bncRinex* rnx = _rinexWriters.find(obs->StatID).value();
    205         rnx->deepCopy(obs);
    206210      }
    207211
     
    210214      first = false;
    211215    }
    212 
    213     // Write RINEX Files
    214     // -----------------
    215     QMapIterator<QString, bncRinex*> ir(_rinexWriters);
    216     while (ir.hasNext()) {
    217       bncRinex* rnx = ir.next().value();
    218       rnx->dumpEpoch();
    219     }
    220   }
    221 }
     216  }
     217}
Note: See TracChangeset for help on using the changeset viewer.