- Timestamp:
- Feb 12, 2012, 3:53:39 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncpostprocess.cpp ¶
r3689 r3695 48 48 #include "rnxnavfile.h" 49 49 #include "corrfile.h" 50 #include "bncsettings.h" 51 #include "bncutils.h" 50 52 51 53 using namespace std; … … 59 61 _corrFile = 0; 60 62 _pppClient = 0; 63 64 bncSettings settings; 65 66 QString outFileName = settings.value("postOutFile").toString(); 67 if (outFileName.isEmpty()) { 68 _outFile = 0; 69 _outStream = 0; 70 } 71 else { 72 expandEnvVar(outFileName); 73 _outFile = new QFile(outFileName); 74 _outFile->open(QIODevice::WriteOnly | QIODevice::Text); 75 _outStream = new QTextStream(); 76 _outStream->setDevice(_outFile); 77 } 61 78 } 62 79 … … 69 86 delete _corrFile; 70 87 delete _opt; 88 delete _outStream; 89 delete _outFile; 71 90 } 72 91 … … 74 93 //////////////////////////////////////////////////////////////////////////// 75 94 void t_postProcessing::slotMessage(QByteArray msg, bool /* showOnScreen */) { 76 ((bncApp*) qApp)->slotMessage(msg, false); 95 if (_outStream) { 96 *_outStream << msg; 97 _outStream->flush(); 98 } 99 else { 100 ((bncApp*) qApp)->slotMessage(msg, false); 101 } 77 102 } 78 103 -
TabularUnified trunk/BNC/bncpostprocess.h ¶
r3688 r3695 63 63 t_rnxNavFile* _rnxNavFile; 64 64 t_corrFile* _corrFile; 65 QFile* _outFile; 66 QTextStream* _outStream; 65 67 }; 66 68
Note:
See TracChangeset
for help on using the changeset viewer.