source: ntrip/trunk/BNC/combination/bnccomb.cpp@ 2910

Last change on this file since 2910 was 2910, checked in by mervart, 13 years ago
File size: 1.4 KB
Line 
1/* -------------------------------------------------------------------------
2 * BKG NTRIP Client
3 * -------------------------------------------------------------------------
4 *
5 * Class: bncComb
6 *
7 * Purpose: Combinations of Orbit/Clock Corrections
8 *
9 * Author: L. Mervart
10 *
11 * Created: 22-Jan-2011
12 *
13 * Changes:
14 *
15 * -----------------------------------------------------------------------*/
16
17#include <iostream>
18
19#include "bnccomb.h"
20#include "bncapp.h"
21#include "bncsettings.h"
22
23using namespace std;
24
25// Constructor
26////////////////////////////////////////////////////////////////////////////
27bncComb::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 }
44}
45
46// Destructor
47////////////////////////////////////////////////////////////////////////////
48bncComb::~bncComb() {
49}
50
51//
52////////////////////////////////////////////////////////////////////////////
53void bncComb::processCorrLine(const QString& staID, const QString& line) {
54 QMutexLocker locker(&_mutex);
55 cout << staID.toAscii().data() << " " << line.toAscii().data() << endl;
56}
57
Note: See TracBrowser for help on using the repository browser.