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