Changeset 5719 in ntrip
- Timestamp:
- Jul 31, 2014, 1:29:23 PM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppMain.cpp
r5717 r5719 56 56 ////////////////////////////////////////////////////////////////////////////// 57 57 t_pppMain::~t_pppMain() { 58 stop(); 58 59 } 59 60 … … 61 62 ////////////////////////////////////////////////////////////////////////////// 62 63 void t_pppMain::start() { 63 cout << "t_pppMain::start" << endl; 64 if (_running) { 65 return; 66 } 67 64 68 readOptions(); 69 70 QListIterator<QSharedPointer<t_options> > it(_options); 71 while (it.hasNext()) { 72 QSharedPointer<t_options> opt = it.next(); 73 t_pppThread* pppThread = new t_pppThread(opt); 74 _running = true; 75 } 65 76 } 66 77 … … 68 79 ////////////////////////////////////////////////////////////////////////////// 69 80 void t_pppMain::stop() { 70 cout << "t_pppMain::stop" << endl; 81 if (!_running) { 82 return; 83 } 84 _running = false; 71 85 } 72 86 -
trunk/BNC/src/PPP/pppMain.h
r5716 r5719 4 4 #include <QtCore> 5 5 #include "options.h" 6 #include "pppThread.h" 6 7 7 8 namespace BNC { … … 18 19 19 20 QList<QSharedPointer<t_options> > _options; 21 QList<t_pppThread*> _pppThreads; 20 22 QString _logFile; 21 23 QString _nmeaFile; 22 24 int _nmeaPort; 25 bool _running; 23 26 }; 24 27 -
trunk/BNC/src/PPP/pppThread.cpp
r5681 r5719 1 2 // Part of BNC, a utility for retrieving decoding and 3 // converting GNSS data streams from NTRIP broadcasters. 4 // 5 // Copyright (C) 2007 6 // German Federal Agency for Cartography and Geodesy (BKG) 7 // http://www.bkg.bund.de 8 // Czech Technical University Prague, Department of Geodesy 9 // http://www.fsv.cvut.cz 10 // 11 // Email: euref-ip@bkg.bund.de 12 // 13 // This program is free software; you can redistribute it and/or 14 // modify it under the terms of the GNU General Public License 15 // as published by the Free Software Foundation, version 2. 16 // 17 // This program is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 // GNU General Public License for more details. 21 // 22 // You should have received a copy of the GNU General Public License 23 // along with this program; if not, write to the Free Software 24 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 25 26 /* ------------------------------------------------------------------------- 27 * BKG NTRIP Client 28 * ------------------------------------------------------------------------- 29 * 30 * Class: t_pppThread 31 * 32 * Purpose: Single PPP Client (running in its own thread) 33 * 34 * Author: L. Mervart 35 * 36 * Created: 29-Jul-2014 37 * 38 * Changes: 39 * 40 * -----------------------------------------------------------------------*/ 41 1 42 2 43 #include <iostream> … … 6 47 #include "pppThread.h" 7 48 #include "bnccore.h" 8 #include "bncsettings.h"9 #include "bnctime.h"10 49 50 using namespace BNC; 11 51 using namespace std; 12 52 13 53 // Constructor 14 54 //////////////////////////////////////////////////////////////////////////// 15 t_pppThread::t_pppThread( ) : QThread(0) {55 t_pppThread::t_pppThread(QSharedPointer<t_options> opt) : QThread(0) { 16 56 } 17 57 … … 25 65 void t_pppThread::run() { 26 66 27 bncSettings settings;28 67 29 68 // Connect to BNC Signals … … 75 114 } 76 115 77 //78 ////////////////////////////////////////////////////////////////////////////79 void t_pppThread::processFrontEpoch() {80 } -
trunk/BNC/src/PPP/pppThread.h
r5681 r5719 3 3 4 4 #include <vector> 5 #include <QtCore> 5 6 6 7 #include "RTCM/GPSDecoder.h" 7 #include "bncephuser.h" 8 #include "options.h" 9 10 namespace BNC { 8 11 9 12 class t_pppThread : public QThread { … … 11 14 12 15 public: 13 t_pppThread( );16 t_pppThread(QSharedPointer<t_options> opt); 14 17 ~t_pppThread(); 15 18 virtual void run(); … … 23 26 24 27 private: 25 class t_epoData { 26 public: 27 bncTime _time; 28 std::vector<t_obs> _obsRover; 29 }; 30 void processFrontEpoch(); 31 QMutex _mutex; 32 QByteArray _roverMount; 33 QByteArray _corrMount; 34 std::vector<t_epoData*> _epochs; 28 QMutex _mutex; 35 29 }; 36 30 31 } 32 37 33 #endif -
trunk/BNC/src/src.pri
r5712 r5719 59 59 RTCM3/ephemeris.h RTCM3/timeutils.h \ 60 60 GPSS/gpssDecoder.h GPSS/hassDecoder.h \ 61 PPP/pppwidgets.h PPP/options.h PPP/pppMain.h 61 PPP/pppwidgets.h PPP/options.h PPP/pppMain.h \ 62 PPP/pppThread.h 62 63 63 64 HEADERS += serial/qextserialbase.h serial/qextserialport.h … … 88 89 RTCM3/ephemeris.cpp RTCM3/timeutils.cpp \ 89 90 GPSS/gpssDecoder.cpp GPSS/hassDecoder.cpp \ 90 PPP/pppwidgets.cpp PPP/options.cpp PPP/pppMain.cpp 91 PPP/pppwidgets.cpp PPP/options.cpp PPP/pppMain.cpp \ 92 PPP/pppThread.cpp 91 93 92 94 SOURCES += serial/qextserialbase.cpp serial/qextserialport.cpp
Note:
See TracChangeset
for help on using the changeset viewer.