Changeset 3626 in ntrip for trunk/BNC/bncpostprocess.cpp
- Timestamp:
- Jan 22, 2012, 6:16:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3625 r3626 27 27 * ------------------------------------------------------------------------- 28 28 * 29 * Function:postProcessing29 * Class: t_postProcessing 30 30 * 31 31 * Purpose: Precise Point Positioning in Post-Processing Mode … … 45 45 using namespace std; 46 46 47 // 47 // Constructor 48 48 //////////////////////////////////////////////////////////////////////////// 49 t_irc postProcessingInit(t_postInput& input) { 49 t_postProcessing::t_postProcessing(QObject* parent) : QThread(parent) { 50 50 51 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(); 54 55 55 return success; 56 _isToBeDeleted = false; 57 } 58 59 // Destructor 60 //////////////////////////////////////////////////////////////////////////// 61 t_postProcessing::~t_postProcessing() { 62 if (isRunning()) { 63 wait(); 64 } 56 65 } 57 66 58 67 // 59 68 //////////////////////////////////////////////////////////////////////////// 60 t_irc postProcessingRun(const t_postInput& input) { 69 void t_postProcessing::terminate() { 70 _isToBeDeleted = true; 71 if (!isRunning()) { 72 delete this; 73 } 74 } 61 75 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 //////////////////////////////////////////////////////////////////////////// 78 void t_postProcessing::run() { 65 79 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 } 67 89 }
Note:
See TracChangeset
for help on using the changeset viewer.