Changeset 5946 in ntrip
- Timestamp:
- Aug 16, 2014, 1:45:47 PM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/PPP/pppMain.cpp ¶
r5944 r5946 63 63 // 64 64 ////////////////////////////////////////////////////////////////////////////// 65 void t_pppMain::start( bool ownThread) {65 void t_pppMain::start() { 66 66 if (_running) { 67 67 return; … … 74 74 while (iOpt.hasNext()) { 75 75 const t_pppOptions* opt = iOpt.next(); 76 t_pppThread* pppThread = new t_pppThread(ownThread, opt); 77 if (ownThread) { 78 pppThread->start(); 79 } 80 else { 81 pppThread->run(); 82 } 76 t_pppThread* pppThread = new t_pppThread(opt); 77 pppThread->start(); 83 78 _pppThreads << pppThread; 84 79 _running = true; … … 94 89 ////////////////////////////////////////////////////////////////////////////// 95 90 void t_pppMain::stop() { 96 97 cout << "t_pppMain::stop" << endl;98 91 99 92 if (!_running) { -
TabularUnified trunk/BNC/src/PPP/pppMain.h ¶
r5905 r5946 12 12 t_pppMain(); 13 13 ~t_pppMain(); 14 void start( bool ownThread);14 void start(); 15 15 void stop(); 16 16 -
TabularUnified trunk/BNC/src/PPP/pppRun.cpp ¶
r5945 r5946 60 60 //////////////////////////////////////////////////////////////////////////// 61 61 t_pppRun::t_pppRun(const t_pppOptions* opt) { 62 63 cout << "t_pppRun" << endl;64 62 65 63 _opt = opt; … … 113 111 //////////////////////////////////////////////////////////////////////////// 114 112 t_pppRun::~t_pppRun() { 115 cout << "~t_pppRun" << endl;116 113 } 117 114 -
TabularUnified trunk/BNC/src/PPP/pppThread.cpp ¶
r5944 r5946 55 55 // Constructor 56 56 //////////////////////////////////////////////////////////////////////////// 57 t_pppThread::t_pppThread( bool ownThread,const t_pppOptions* opt) : QThread(0) {57 t_pppThread::t_pppThread(const t_pppOptions* opt) : QThread(0) { 58 58 59 cout << "t_pppThread" << endl;60 61 _ownThread = ownThread;62 59 _opt = opt; 63 60 _pppRun = 0; … … 72 69 //////////////////////////////////////////////////////////////////////////// 73 70 t_pppThread::~t_pppThread() { 74 cout << "~t_pppThread" << endl;75 71 delete _pppRun; 76 72 } … … 83 79 _pppRun = new t_pppRun(_opt); 84 80 if (_opt->_realTime) { 85 if (_ownThread) { 86 QThread::exec(); 87 } 81 QThread::exec(); 88 82 } 89 83 else { -
TabularUnified trunk/BNC/src/PPP/pppThread.h ¶
r5930 r5946 16 16 Q_OBJECT 17 17 public: 18 t_pppThread( bool ownThread,const t_pppOptions* opt);18 t_pppThread(const t_pppOptions* opt); 19 19 ~t_pppThread(); 20 20 virtual void run(); … … 25 25 26 26 private: 27 bool _ownThread;28 27 const t_pppOptions* _opt; 29 28 t_pppRun* _pppRun; -
TabularUnified trunk/BNC/src/bnccore.cpp ¶
r5938 r5946 873 873 // 874 874 //////////////////////////////////////////////////////////////////////////// 875 void t_bncCore::startPPP( bool ownThread) {876 _pppMain->start( ownThread);875 void t_bncCore::startPPP() { 876 _pppMain->start(); 877 877 } 878 878 -
TabularUnified trunk/BNC/src/bnccore.h ¶
r5941 r5946 71 71 void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;} 72 72 bool GUIenabled() const {return _GUIenabled;} 73 void startPPP( bool ownThread);73 void startPPP(); 74 74 void stopPPP(); 75 75 -
TabularUnified trunk/BNC/src/bncmain.cpp ¶
r5945 r5946 174 174 else if (settings.value("PPP/dataSource").toString() == "RINEX Files") { 175 175 BNC_CORE->setMode(t_bncCore::batchPostProcessing); 176 BNC_CORE->startPPP( true);176 BNC_CORE->startPPP(); 177 177 } 178 178 … … 200 200 if ( rawFileName.isEmpty() ) { 201 201 BNC_CORE->setMode(t_bncCore::nonInteractive); 202 BNC_CORE->startPPP( true);202 BNC_CORE->startPPP(); 203 203 204 204 caster->readMountPoints(); … … 212 212 else { 213 213 BNC_CORE->setMode(t_bncCore::batchPostProcessing); 214 BNC_CORE->startPPP( true);214 BNC_CORE->startPPP(); 215 215 216 216 bncRawFile* rawFile = new bncRawFile(rawFileName, "", bncRawFile::input); -
TabularUnified trunk/BNC/src/bncwindow.cpp ¶
r5943 r5946 1650 1650 saveOptions(); 1651 1651 if ( _pppWidgets._dataSource->currentText() == "RINEX Files") { 1652 BNC_CORE->startPPP( true);1652 BNC_CORE->startPPP(); 1653 1653 } 1654 1654 else if ( !_reqcActionComboBox->currentText().isEmpty() ) { … … 1657 1657 else { 1658 1658 startRealTime(); 1659 BNC_CORE->startPPP( true);1659 BNC_CORE->startPPP(); 1660 1660 } 1661 1661 }
Note:
See TracChangeset
for help on using the changeset viewer.