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

Last change on this file since 2915 was 2915, checked in by mervart, 13 years ago
File size: 1.6 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 if (_nStreams >= 2) {
36 QListIterator<QString> it(combineStreams);
37 while (it.hasNext()) {
38 QStringList hlp = it.next().split(" ");
39 cout << "combination: " << hlp[0].toAscii().data() << endl;
40 }
41 }
42}
43
44// Destructor
45////////////////////////////////////////////////////////////////////////////
46bncComb::~bncComb() {
47}
48
49//
50////////////////////////////////////////////////////////////////////////////
51void bncComb::processCorrLine(const QString& staID, const QString& line) {
52 QMutexLocker locker(&_mutex);
53
54 t_corr* newCorr = new t_corr();
55 if (!newCorr->readLine(line) == success) {
56 delete newCorr;
57 return;
58 }
59
60 cout << staID.toAscii().data() << " " << newCorr->prn.toAscii().data() << " "
61 << newCorr->tt.datestr() << " " << newCorr->tt.timestr() << " "
62 << newCorr->iod << " " << newCorr->dClk << endl;
63
64 delete newCorr;
65}
66
Note: See TracBrowser for help on using the repository browser.