Changeset 8756 in ntrip


Ignore:
Timestamp:
May 16, 2019, 1:57:31 PM (4 weeks ago)
Author:
mervart
Message:

Sort MP data (make the largest values always visible)

Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

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

    r8567 r8756  
    533533}
    534534
     535// Auxiliary Function for sorting MP data
     536////////////////////////////////////////////////////////////////////////////
     537bool t_reqcAnalyze::mpLessThan(const t_polarPoint* p1, const t_polarPoint* p2) {
     538  return p1->_value < p2->_value;
     539}
     540
    535541//
    536542////////////////////////////////////////////////////////////////////////////
     
    576582        }
    577583      }
     584
     585      // Sort MP data (make the largest values always visible)
     586      // -----------------------------------------------------
     587      qStableSort(dataMP._data->begin(), dataMP._data->end(), mpLessThan);
    578588    }
    579589  }
  • trunk/BNC/src/rinex/reqcanalyze.h

    r8566 r8756  
    201201  void   printReport(const t_rnxObsFile* obsFile);
    202202
     203  static bool mpLessThan(const t_polarPoint* p1, const t_polarPoint* p2);
     204   
    203205  QString                    _logFileName;
    204206  QFile*                     _logFile;
Note: See TracChangeset for help on using the changeset viewer.