Changeset 4002 in ntrip


Ignore:
Timestamp:
Apr 22, 2012, 11:39:20 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/ephemeris.h

    r3761 r4002  
    1212class t_eph {
    1313 public:
     14
     15  static bool earlierTime(const t_eph* eph1, const t_eph* eph2) {
     16    if      (eph1->_GPSweek < eph2->_GPSweek) {
     17      return true;
     18    }
     19    else if (eph1->_GPSweek == eph2->_GPSweek) {
     20      return eph1->_GPSweeks < eph2->_GPSweeks;
     21    }
     22    else {
     23      return false;
     24    }
     25  }
     26
    1427  t_eph() {_ok = false;}
    1528  virtual ~t_eph() {};
  • trunk/BNC/rinex/reqcedit.cpp

    r4001 r4002  
    246246    }
    247247  }
    248 
    249 }
     248  qStableSort(_ephs.begin(), _ephs.end(),
     249              t_eph::earlierTime);
     250
     251}
Note: See TracChangeset for help on using the changeset viewer.