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

Last change on this file since 2990 was 2990, checked in by mervart, 13 years ago
File size: 2.0 KB
Line 
1
2#ifndef BNCCOMB_H
3#define BNCCOMB_H
4
5#include <newmat.h>
6#include "bncephuser.h"
7
8class cmbCaster;
9
10class cmbParam {
11 public:
12 enum parType {AC_offset, Sat_offset, clk};
13 cmbParam(parType typeIn, int indexIn,
14 const QString& acIn, const QString& prnIn);
15 ~cmbParam();
16 double partial(const QString& acIn, t_corr* corr);
17 QString toString() const;
18 parType type;
19 int index;
20 QString AC;
21 QString prn;
22 double xx;
23};
24
25class bncComb : public bncEphUser {
26 Q_OBJECT
27
28 public:
29 bncComb();
30 ~bncComb();
31 void processCorrLine(const QString& staID, const QString& line);
32 int nStreams() const {return _ACs.size();}
33
34 signals:
35 void newMessage(QByteArray msg, bool showOnScreen);
36
37 private:
38 class cmbEpoch {
39 public:
40 cmbEpoch(const QString& name) {acName = name;}
41 ~cmbEpoch() {
42 QMapIterator<QString, t_corr*> it(corr);
43 while (it.hasNext()) {
44 it.next();
45 delete it.value();
46 }
47 }
48 QString acName;
49 bncTime time;
50 QMap<QString, t_corr*> corr; // Corrections (key is PRN)
51 };
52
53 class cmbAC {
54 public:
55 cmbAC() {}
56 ~cmbAC() {
57 QListIterator<cmbEpoch*> it(epochs);
58 while (it.hasNext()) {
59 delete it.next();
60 }
61 }
62 QString mountPoint;
63 QString name;
64 double weight;
65 QQueue<cmbEpoch*> epochs; // List of Epochs with Corrections
66 };
67
68 void processEpochs(const QList<cmbEpoch*>& epochs);
69 void dumpResults(const bncTime& resTime,
70 const QMap<QString, t_corr*>& resCorr);
71 void switchToLastEph(const t_eph* lastEph, const t_eph* prevEph,
72 t_corr* newCorr);
73
74 QMap<QString, cmbAC*> _ACs; // Analytical Centers (key is mountpoint)
75 bncTime _processedBeforeTime;
76 cmbCaster* _caster;
77 QVector<cmbParam*> _params;
78 double _sigACOff;
79 double _sigSatOff;
80 double _sigClk;
81 SymmetricMatrix _QQ;
82 QByteArray _log;
83};
84
85#endif
Note: See TracBrowser for help on using the repository browser.