Rev | Line | |
---|
[2898] | 1 |
|
---|
| 2 | #ifndef BNCCOMB_H
|
---|
| 3 | #define BNCCOMB_H
|
---|
| 4 |
|
---|
[2906] | 5 | #include "bncephuser.h"
|
---|
[2898] | 6 |
|
---|
[2906] | 7 | class bncComb : public bncEphUser {
|
---|
[2898] | 8 | Q_OBJECT
|
---|
| 9 |
|
---|
| 10 | public:
|
---|
| 11 | bncComb();
|
---|
| 12 | ~bncComb();
|
---|
| 13 | void processCorrLine(const QString& staID, const QString& line);
|
---|
[2918] | 14 | int nStreams() const {return _ACs.size();}
|
---|
[2898] | 15 |
|
---|
| 16 | signals:
|
---|
| 17 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
| 18 |
|
---|
| 19 | private:
|
---|
[2918] | 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 |
|
---|
[2924] | 50 | void processEpochs();
|
---|
[2919] | 51 | void processSingleCorr(const cmbAC* AC, const t_corr* corr);
|
---|
| 52 | void printResults() const;
|
---|
[2918] | 53 |
|
---|
| 54 | QMap<QString, cmbAC*> _ACs; // Analytical Centers (key is mountpoint)
|
---|
[2924] | 55 | bncTime _processedBeforeTime;
|
---|
[2898] | 56 | };
|
---|
| 57 |
|
---|
| 58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.