Changeset 3035 in ntrip for trunk/BNC/combination
- Timestamp:
- Feb 25, 2011, 1:35:15 PM (14 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/combination/bnccomb.cpp ¶
r3034 r3035 158 158 _QQ(iPar,iPar) = pp->sig_0 * pp->sig_0; 159 159 } 160 161 // Output File (skeleton name) 162 // --------------------------- 163 QString path = settings.value("cmbOutPath").toString(); 164 if (!path.isEmpty() && !_caster->mountpoint().isEmpty()) { 165 expandEnvVar(path); 166 if ( path.length() > 0 && path[path.length()-1] != QDir::separator() ) { 167 path += QDir::separator(); 168 } 169 _outNameSkl = path + _caster->mountpoint(); 170 } 171 _out = 0; 160 172 } 161 173 … … 169 181 } 170 182 delete _caster; 183 delete _out; 171 184 } 172 185 … … 341 354 } 342 355 343 // Optionall send new Corrections to PPP client 344 // -------------------------------------------- 356 // Optionall send new Corrections to PPP client and/or write into file 357 // ------------------------------------------------------------------- 358 RTCM3coDecoder::reopen(_outNameSkl, _outName, _out); 345 359 bncApp* app = (bncApp*) qApp; 346 if (app->_bncPPPclient) { 360 if (app->_bncPPPclient || _out) { 347 361 QStringList corrLines; 348 362 co.messageType = COTYPE_GPSCOMBINED; … … 350 364 resTime.gpssec(), co, 0)); 351 365 while (il.hasNext()) { 352 QString line = il.next() + " " + _caster->mountpoint(); 366 QString line = il.next(); 367 if (_out) { 368 *_out << line.toAscii().data() << endl; 369 _out->flush(); 370 } 371 line += " " + _caster->mountpoint(); 353 372 corrLines << line; 354 373 } 355 356 app->_bncPPPclient->slotNewCorrections(corrLines); 374 375 if (app->_bncPPPclient) { 376 app->_bncPPPclient->slotNewCorrections(corrLines); 377 } 357 378 } 358 379 } -
TabularUnified trunk/BNC/combination/bnccomb.h ¶
r3032 r3035 3 3 #define BNCCOMB_H 4 4 5 #include <fstream> 5 6 #include <newmat.h> 6 7 #include "bncephuser.h" … … 82 83 QByteArray _log; 83 84 QString _masterAC; 85 QString _outNameSkl; 86 QString _outName; 87 std::ofstream* _out; 84 88 }; 85 89
Note:
See TracChangeset
for help on using the changeset viewer.