Changeset 3626 in ntrip for trunk/BNC/bncpostprocess.cpp


Ignore:
Timestamp:
Jan 22, 2012, 6:16:57 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpostprocess.cpp

    r3625 r3626  
    2727 * -------------------------------------------------------------------------
    2828 *
    29  * Function:   postProcessing
     29 * Class:      t_postProcessing
    3030 *
    3131 * Purpose:    Precise Point Positioning in Post-Processing Mode
     
    4545using namespace std;
    4646
    47 //
     47// Constructor
    4848////////////////////////////////////////////////////////////////////////////
    49 t_irc postProcessingInit(t_postInput& input) {
     49t_postProcessing::t_postProcessing(QObject* parent) : QThread(parent) {
     50
    5051  bncSettings settings;
    51   input.obsFileName  = settings.value("postObsFile").toString();
    52   input.navFileName  = settings.value("postNavFile").toString();
    53   input.corrFileName = settings.value("postcorrFile").toString();
     52  _input.obsFileName  = settings.value("postObsFile").toString();
     53  _input.navFileName  = settings.value("postNavFile").toString();
     54  _input.corrFileName = settings.value("postcorrFile").toString();
    5455
    55   return success;
     56  _isToBeDeleted = false;
     57}
     58
     59// Destructor
     60////////////////////////////////////////////////////////////////////////////
     61t_postProcessing::~t_postProcessing() {
     62  if (isRunning()) {
     63    wait();
     64  }
    5665}
    5766
    5867//
    5968////////////////////////////////////////////////////////////////////////////
    60 t_irc postProcessingRun(const t_postInput& input) {
     69void t_postProcessing::terminate() {
     70  _isToBeDeleted = true;
     71  if (!isRunning()) {
     72    delete this;
     73  }
     74}
    6175
    62   cout << "obsFile: "  << input.obsFileName.toAscii().data()  << endl;
    63   cout << "navFile: "  << input.navFileName.toAscii().data()  << endl;
    64   cout << "corrFile: " << input.corrFileName.toAscii().data() << endl;
     76// 
     77////////////////////////////////////////////////////////////////////////////
     78void t_postProcessing::run() {
    6579
    66   return success;
     80  cout << "obsFile: "  << _input.obsFileName.toAscii().data()  << endl;
     81  cout << "navFile: "  << _input.navFileName.toAscii().data()  << endl;
     82  cout << "corrFile: " << _input.corrFileName.toAscii().data() << endl;
     83
     84  int MAXI = 10;
     85  for (int ii = 1; ii < MAXI; ii++) {
     86    cout << "ii = " << ii << endl;
     87    sleep(1);
     88  }
    6789}
Note: See TracChangeset for help on using the changeset viewer.