Changeset 2865 in ntrip


Ignore:
Timestamp:
Jan 22, 2011, 12:52:25 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r2861 r2865  
    4848#include "bncsettings.h"
    4949#include "bncversion.h"
     50#include "bnccomb.h"
    5051
    5152using namespace std;
     
    110111    _GLOFreq[ii] = 0;
    111112  }
     113
     114  _bncComb = new bncComb();
    112115}
    113116
     
    142145
    143146  delete _rawFile;
     147
     148  delete _bncComb;
    144149}
    145150
     
    749754    emit( newMessage(line.toAscii(), true) );
    750755    return;
     756  }
     757
     758  // Combination of Corrections
     759  // --------------------------
     760  if (_bncComb) {
     761    _bncComb->processCorrLine(staID, line);
    751762  }
    752763
  • trunk/BNC/bncapp.h

    r2770 r2865  
    3333#include "bncrawfile.h"
    3434#include "RTCM3/RTCM3Decoder.h"
     35
     36class bncComb;
    3537
    3638class bncApp : public QApplication {
     
    116118    bncRawFile*         _rawFile;
    117119    int                 _GLOFreq[PRN_GLONASS_NUM];
     120    bncComb*            _bncComb;
    118121};
    119122#endif
  • trunk/BNC/bnccomb.cpp

    r2864 r2865  
    3939 * -----------------------------------------------------------------------*/
    4040
     41#include <iostream>
     42
    4143#include "bnccomb.h"
    4244#include "bncapp.h"
     
    4749////////////////////////////////////////////////////////////////////////////
    4850bncComb::bncComb() {
    49   connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)),
    50           this, SLOT(slotNewCorrections(QList<QString>)));
    5151}
    5252
     
    5858//
    5959////////////////////////////////////////////////////////////////////////////
    60 void bncComb::slotNewCorrections(QList<QString> corrList) {
    61   QMutexLocker locker(&_mutex);
    62 
    63   if (corrList.size() == 0) {
    64     return;
    65   }
    66 
     60void bncComb::processCorrLine(const QString& staID, const QString& line) {
     61  ///  cout << staID.toAscii().data() << " " << line.toAscii().data() << endl;
    6762}
    6863
  • trunk/BNC/bnccomb.h

    r2864 r2865  
    3434  bncComb();
    3535  ~bncComb();
     36  void processCorrLine(const QString& staID, const QString& line);
    3637
    3738 public slots:
    38   void slotNewCorrections(QList<QString> corrList);
    3939
    4040 signals:
     
    4242
    4343 private:
    44   QMutex                  _mutex;
    4544};
    4645
Note: See TracChangeset for help on using the changeset viewer.