source: ntrip/trunk/BNC/bnccaster.h@ 186

Last change on this file since 186 was 186, checked in by mervart, 18 years ago

* empty log message *

File size: 1.3 KB
RevLine 
[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
13class bncGetThread;
14
15class bncCaster : public QThread {
16 Q_OBJECT
17
18 public:
19 bncCaster(const QString& outFileName, int port);
20 ~bncCaster();
21 void addGetThread(bncGetThread* getThread);
[88]22 int numStations() const {return _staIDs.size();}
[35]23
24 signals:
25 void getThreadErrors();
[82]26 void newMessage(const QByteArray& msg);
[35]27
28 public slots:
[88]29 void slotNewObs(const QByteArray& staID, Observation* obs);
[35]30
31 private slots:
32 void slotNewConnection();
[88]33 void slotGetThreadError(const QByteArray& staID);
[35]34
35 protected:
36 virtual void run();
37
38 private:
39 void dumpEpochs(long minTime, long maxTime);
40
41 QFile* _outFile;
42 int _port;
43 QTextStream* _out;
44 QMultiMap<long, Observation*>* _epochs;
45 long _lastDumpSec;
46 QTcpServer* _server;
47 QList<QTcpSocket*>* _sockets;
[88]48 QList<QByteArray> _staIDs;
[73]49 QMap<QString, bncRinex*> _rinexWriters;
[186]50 QList<bncGetThread*> _threads;
[134]51 int _samplingRate;
[136]52 long _waitTime;
[35]53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.