source: ntrip/trunk/BNC/combination/bnccomb.h@ 2928

Last change on this file since 2928 was 2928, checked in by mervart, 13 years ago
File size: 1.4 KB
Line 
1
2#ifndef BNCCOMB_H
3#define BNCCOMB_H
4
5#include "bncephuser.h"
6
7class cmbCaster;
8
9class bncComb : public bncEphUser {
10 Q_OBJECT
11
12 public:
13 bncComb();
14 ~bncComb();
15 void processCorrLine(const QString& staID, const QString& line);
16 int nStreams() const {return _ACs.size();}
17
18 signals:
19 void newMessage(QByteArray msg, bool showOnScreen);
20
21 private:
22
23 class cmbEpoch {
24 public:
25 cmbEpoch(const QString& name) {acName = name;}
26 ~cmbEpoch() {
27 QMapIterator<QString, t_corr*> it(corr);
28 while (it.hasNext()) {
29 it.next();
30 delete it.value();
31 }
32 }
33 QString acName;
34 bncTime time;
35 QMap<QString, t_corr*> corr; // Corrections (key is PRN)
36 };
37
38 class cmbAC {
39 public:
40 cmbAC() {}
41 ~cmbAC() {
42 QListIterator<cmbEpoch*> it(epochs);
43 while (it.hasNext()) {
44 delete it.next();
45 }
46 }
47 QString mountPoint;
48 QString name;
49 double weight;
50 QQueue<cmbEpoch*> epochs; // List of Epochs with Corrections
51 };
52
53 void processEpochs(const QList<cmbEpoch*>& epochs);
54 void printSingleCorr(const QString& acName, const t_corr* corr);
55 void dumpResults(const bncTime& resTime,
56 const QMap<QString, t_corr*>& resCorr);
57
58 QMap<QString, cmbAC*> _ACs; // Analytical Centers (key is mountpoint)
59 bncTime _processedBeforeTime;
60 cmbCaster* _caster;
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.