Line | |
---|
1 |
|
---|
2 | #ifndef BNCCOMB_H
|
---|
3 | #define BNCCOMB_H
|
---|
4 |
|
---|
5 | #include "bncephuser.h"
|
---|
6 |
|
---|
7 | class cmbCaster;
|
---|
8 |
|
---|
9 | class 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 |
|
---|
56 | QMap<QString, cmbAC*> _ACs; // Analytical Centers (key is mountpoint)
|
---|
57 | bncTime _processedBeforeTime;
|
---|
58 | cmbCaster* _caster;
|
---|
59 | };
|
---|
60 |
|
---|
61 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.