Changeset 7977 in ntrip


Ignore:
Timestamp:
Jun 30, 2016, 5:05:55 PM (8 years ago)
Author:
stuerze
Message:

mionor changes to allow programm interruption by Ctrl+C in case of raw file processing

Location:
branches/BNC_2.12/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bnccore.h

    r7300 r7977  
    7171  void             startPPP();
    7272  void             stopPPP();
     73  int              sigintReceived; 
    7374
    7475  QMap<int, bncTableItem*> _uploadTableItems;
  • branches/BNC_2.12/src/bncgetthread.cpp

    r7859 r7977  
    468468        QCoreApplication::processEvents();
    469469
    470         if (data.isEmpty()) {
    471           cout << "no more data" << endl;
     470        if (data.isEmpty() || BNC_CORE->sigintReceived) {
     471          cout << "no more data or Ctrl-C received" << endl;
    472472          BNC_CORE->stopCombination();
    473473          BNC_CORE->stopPPP();
     
    641641#endif
    642642    }
    643 
    644     delete _query;
     643    if (_query) {
     644      delete _query;
     645    }
    645646    if      (_ntripVersion == "U") {
    646647      _query = new bncNetQueryUdp();
  • branches/BNC_2.12/src/bncmain.cpp

    r7945 r7977  
    6060void catch_signal(int) {
    6161  cout << "Program Interrupted by Ctrl-C" << endl;
     62  BNC_CORE->sigintReceived = 1;
    6263  qApp->quit();
    6364}
     
    483484    // -----------------------------
    484485    else {
     486      BNC_CORE->sigintReceived = 0;
    485487      BNC_CORE->setMode(t_bncCore::batchPostProcessing);
    486488      BNC_CORE->startPPP();
Note: See TracChangeset for help on using the changeset viewer.