Changeset 2910 in ntrip


Ignore:
Timestamp:
Jan 27, 2011, 2:31:54 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r2906 r2910  
    1919#include "bnccomb.h"
    2020#include "bncapp.h"
     21#include "bncsettings.h"
    2122
    2223using namespace std;
     
    2526////////////////////////////////////////////////////////////////////////////
    2627bncComb::bncComb() {
     28
     29  bncSettings settings;
     30
     31  QStringList combineStreams = settings.value("combineStreams").toStringList();
     32 
     33  _nStreams = combineStreams.size();
     34 
     35  cout << "HAHA " << _nStreams << endl;
     36
     37  if (_nStreams >= 2) {
     38    QListIterator<QString> it(combineStreams);
     39    while (it.hasNext()) {
     40      QStringList hlp = it.next().split(" ");
     41      cout << "combination: " << hlp[0].toAscii().data() << endl;
     42    }
     43  }
    2744}
    2845
     
    3653void bncComb::processCorrLine(const QString& staID, const QString& line) {
    3754  QMutexLocker locker(&_mutex);
    38 
    39 ///  cout << staID.toAscii().data() << " " << line.toAscii().data() << endl;
     55  cout << staID.toAscii().data() << " " << line.toAscii().data() << endl;
    4056}
    4157
  • trunk/BNC/combination/bnccomb.h

    r2906 r2910  
    1212  ~bncComb();
    1313  void processCorrLine(const QString& staID, const QString& line);
    14 
    15  public slots:
     14  int  nStreams() const {return _nStreams;}
    1615
    1716 signals:
     
    1918
    2019 private:
     20  int _nStreams;
    2121};
    2222
Note: See TracChangeset for help on using the changeset viewer.