Changeset 11179 in ntrip for trunk/BNC/src/bncclockrinex.cpp


Ignore:
Timestamp:
Nov 6, 2026, 4:05:20 PM (17 hours ago)
Author:
stuerze
Message:

structuered logging is added and bug is fixed in SP3 file writing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncclockrinex.cpp

    r10613 r11179  
    3636////////////////////////////////////////////////////////////////////////////
    3737bncClockRinex::~bncClockRinex() {
     38  if (_lastEpoTime.valid()) {
     39    writeEpoch(_lastEpoTime, _oStr.str()); // last epoch, otherwise printed with the next one
     40  }
    3841  bncoutf::closeFile();
    3942}
    … …  
    4750  _oStr.setf(ios::fixed);
    4851
    49   if (reopen(GPSweek, GPSweeks) == success) {
     52  if (_sampl == 0 || fmod(GPSweeks, _sampl) == 0.0) {
    5053
    5154    bncTime epoTime(GPSweek, GPSweeks);
    … …  
    5356    if (epoTime != _lastEpoTime) {
    5457
    55       // print out epoch before
     58      // print out epoch before (complete now)
    5659      if (_lastEpoTime.valid()) {
    57         _out << _oStr.str();
    58         if (_lastEpoTime.daysec() != 0.0) {
    59           _oStr.str(std::string());
    60         }
     60        writeEpoch(_lastEpoTime, _oStr.str());
     61        _oStr.str(std::string());
    6162      }
    6263
Note: See TracChangeset for help on using the changeset viewer.