Changeset 5988 in ntrip
- Timestamp:
- Aug 18, 2014, 8:10:10 AM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppRun.cpp
r5987 r5988 116 116 _stopFlag = false; 117 117 118 QString roverName(_opt->_roverName.c_str()); 119 118 120 QString logFileSkl = settings.value("PPP/logFile").toString(); 119 QString roverName(_opt->_roverName.c_str()); 120 if (logFileSkl.indexOf("${STATION}") == -1) { 121 logFileSkl = roverName + "_" + logFileSkl; 121 if (logFileSkl.isEmpty()) { 122 _logFile = 0; 122 123 } 123 124 else { 124 logFileSkl.replace("${STATION}", roverName); 125 } 126 _logFile = new bncoutf(logFileSkl, "1 day", 0); 125 if (logFileSkl.indexOf("${STATION}") == -1) { 126 logFileSkl = roverName + "_" + logFileSkl; 127 } 128 else { 129 logFileSkl.replace("${STATION}", roverName); 130 } 131 _logFile = new bncoutf(logFileSkl, "1 day", 0); 132 } 133 134 QString nmeaFileSkl = settings.value("PPP/nmeaFile").toString(); 135 if (nmeaFileSkl.isEmpty()) { 136 _nmeaFile = 0; 137 } 138 else { 139 if (nmeaFileSkl.indexOf("${STATION}") == -1) { 140 nmeaFileSkl = roverName + "_" + nmeaFileSkl; 141 } 142 else { 143 nmeaFileSkl.replace("${STATION}", roverName); 144 } 145 _nmeaFile = new bncoutf(nmeaFileSkl, "1 day", 0); 146 } 127 147 } 128 148 … … 131 151 t_pppRun::~t_pppRun() { 132 152 delete _logFile; 153 delete _nmeaFile; 133 154 } 134 155 … … 270 291 } 271 292 272 if ( output._epoTime.valid()) {293 if (_logFile && output._epoTime.valid()) { 273 294 _logFile->write(output._epoTime.gpsw(), output._epoTime.gpssec(), 274 295 QString(output._log.c_str())); -
trunk/BNC/src/PPP/pppRun.h
r5984 r5988 68 68 bool _stopFlag; 69 69 bncoutf* _logFile; 70 bncoutf* _nmeaFile; 70 71 }; 71 72
Note:
See TracChangeset
for help on using the changeset viewer.