Rev | Line | |
---|
[35] | 1 |
|
---|
| 2 | #ifndef BNCCASTER_H
|
---|
| 3 | #define BNCCASTER_H
|
---|
| 4 |
|
---|
| 5 | #include <QFile>
|
---|
| 6 | #include <QThread>
|
---|
| 7 | #include <QtNetwork>
|
---|
| 8 | #include <QMultiMap>
|
---|
| 9 |
|
---|
| 10 | #include "RTCM/GPSDecoder.h"
|
---|
[73] | 11 | #include "bncrinex.h"
|
---|
[35] | 12 |
|
---|
| 13 | class bncGetThread;
|
---|
| 14 |
|
---|
| 15 | class bncCaster : public QThread {
|
---|
| 16 | Q_OBJECT
|
---|
| 17 |
|
---|
| 18 | public:
|
---|
| 19 | bncCaster(const QString& outFileName, int port);
|
---|
| 20 | ~bncCaster();
|
---|
| 21 | void addGetThread(bncGetThread* getThread);
|
---|
| 22 |
|
---|
| 23 | signals:
|
---|
| 24 | void getThreadErrors();
|
---|
| 25 |
|
---|
| 26 | public slots:
|
---|
| 27 | void slotNewObs(const QByteArray& mountPoint, Observation* obs);
|
---|
| 28 |
|
---|
| 29 | private slots:
|
---|
| 30 | void slotNewConnection();
|
---|
| 31 | void slotGetThreadError(const QByteArray& mountPoint);
|
---|
| 32 |
|
---|
| 33 | protected:
|
---|
| 34 | virtual void run();
|
---|
| 35 |
|
---|
| 36 | private:
|
---|
| 37 | void dumpEpochs(long minTime, long maxTime);
|
---|
| 38 |
|
---|
| 39 | QFile* _outFile;
|
---|
| 40 | int _port;
|
---|
| 41 | QTextStream* _out;
|
---|
| 42 | QMultiMap<long, Observation*>* _epochs;
|
---|
| 43 | long _lastDumpSec;
|
---|
| 44 | QTcpServer* _server;
|
---|
| 45 | QList<QTcpSocket*>* _sockets;
|
---|
| 46 | QList<QByteArray> _mountPoints;
|
---|
[73] | 47 | QMap<QString, bncRinex*> _rinexWriters;
|
---|
[35] | 48 | };
|
---|
| 49 |
|
---|
| 50 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.