Changeset 7640 in ntrip for trunk/BNC/src/bncmain.cpp
- Timestamp:
- Dec 18, 2015, 3:18:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncmain.cpp
r7541 r7640 379 379 } 380 380 381 bncWindow* bncWin = 0; 382 t_reqcEdit* reqcEdit = 0; 383 t_reqcAnalyze* reqcAnalyze = 0; 384 t_sp3Comp* sp3Comp = 0; 385 bncEphUploadCaster* casterEph = 0; 386 bncCaster* caster = 0; 387 bncRawFile* rawFile = 0; 388 bncGetThread* getThread = 0; 389 381 390 // Interactive Mode - open the main window 382 391 // --------------------------------------- … … 395 404 app.setWindowIcon(QPixmap(":ntrip-logo.png")); 396 405 397 bncWin dow* bncWin= new bncWindow();406 bncWin = new bncWindow(); 398 407 BNC_CORE->setMainWindow(bncWin); 399 408 bncWin->show(); … … 403 412 // ------------------- 404 413 else if (settings.value("PPP/dataSource").toString() == "RINEX Files") { 405 bncCaster*caster = new bncCaster();414 caster = new bncCaster(); 406 415 BNC_CORE->setCaster(caster); 407 416 BNC_CORE->setMode(t_bncCore::batchPostProcessing); … … 413 422 else if (settings.value("reqcAction").toString() == "Edit/Concatenate") { 414 423 BNC_CORE->setMode(t_bncCore::batchPostProcessing); 415 t_reqcEdit*reqcEdit = new t_reqcEdit(0);424 reqcEdit = new t_reqcEdit(0); 416 425 reqcEdit->start(); 417 426 } … … 421 430 else if (settings.value("reqcAction").toString() == "Analyze") { 422 431 BNC_CORE->setMode(t_bncCore::batchPostProcessing); 423 t_reqcAnalyze*reqcAnalyze = new t_reqcAnalyze(0);432 reqcAnalyze = new t_reqcAnalyze(0); 424 433 reqcAnalyze->start(); 425 434 } … … 429 438 else if (!settings.value("sp3CompFile").toString().isEmpty()) { 430 439 BNC_CORE->setMode(t_bncCore::batchPostProcessing); 431 t_sp3Comp*sp3Comp = new t_sp3Comp(0);440 sp3Comp = new t_sp3Comp(0); 432 441 sp3Comp->start(); 433 442 } … … 439 448 signal(SIGINT, catch_signal); 440 449 441 bncEphUploadCaster*casterEph = new bncEphUploadCaster(); (void) casterEph;442 443 bncCaster*caster = new bncCaster();450 casterEph = new bncEphUploadCaster(); (void) casterEph; 451 452 caster = new bncCaster(); 444 453 445 454 BNC_CORE->setCaster(caster); … … 470 479 BNC_CORE->startPPP(); 471 480 472 bncRawFile*rawFile = new bncRawFile(rawFileName, "", bncRawFile::input);473 bncGetThread*getThread = new bncGetThread(rawFile);481 rawFile = new bncRawFile(rawFileName, "", bncRawFile::input); 482 getThread = new bncGetThread(rawFile); 474 483 caster->addGetThread(getThread, true); 475 484 } … … 478 487 // Start the application 479 488 // --------------------- 480 return app.exec(); 489 app.exec(); 490 if (interactive) { 491 delete bncWin; 492 } 493 if (caster) { 494 delete caster; 495 } 496 if (casterEph) { 497 delete casterEph; 498 } 499 if (rawFile) { 500 delete rawFile; 501 } 502 return 0; 481 503 }
Note:
See TracChangeset
for help on using the changeset viewer.