- Timestamp:
- Dec 30, 2014, 3:15:35 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.cpp
r6519 r6520 204 204 } 205 205 206 // 207 //////////////////////////////////////////////////////////////////////////// 208 t_irc t_bncCore::checkPrintEph(t_eph* eph) { 209 QMutexLocker locker(&_mutex); 210 t_irc ircPut = _ephUser.putNewEph(eph, true); 211 if (eph->checkState() == t_eph::bad) { 212 return failure; 213 } 214 printEphHeader(); 215 printEph(*eph, (ircPut == success)); 216 return success; 217 } 218 206 219 // New GPS Ephemeris 207 220 //////////////////////////////////////////////////////////////////////////// 208 221 void t_bncCore::slotNewGPSEph(t_ephGPS eph) { 209 QMutexLocker locker(&_mutex); 210 211 t_irc irc = _ephUser.putNewEph(&eph, true); 212 if (eph.checkState() == t_eph::bad) { 213 return; 214 } 215 216 emit newGPSEph(eph); 217 218 printEphHeader(); 219 printEph(eph, (irc == success)); 222 if (checkPrintEph(&eph) == success) { 223 emit newGPSEph(eph); 224 } 220 225 } 221 226 … … 223 228 //////////////////////////////////////////////////////////////////////////// 224 229 void t_bncCore::slotNewGlonassEph(t_ephGlo eph) { 225 QMutexLocker locker(&_mutex); 226 227 t_irc irc = _ephUser.putNewEph(&eph, true); 228 if (eph.checkState() == t_eph::bad) { 229 return; 230 } 231 232 emit newGlonassEph(eph); 233 234 printEphHeader(); 235 printEph(eph, (irc == success)); 230 if (checkPrintEph(&eph) == success) { 231 emit newGlonassEph(eph); 232 } 236 233 } 237 234 … … 239 236 //////////////////////////////////////////////////////////////////////////// 240 237 void t_bncCore::slotNewGalileoEph(t_ephGal eph) { 241 QMutexLocker locker(&_mutex); 242 243 t_irc irc = _ephUser.putNewEph(&eph, true); 244 if (eph.checkState() == t_eph::bad) { 245 return; 246 } 247 248 emit newGalileoEph(eph); 249 250 printEphHeader(); 251 printEph(eph, (irc == success)); 238 if (checkPrintEph(&eph) == success) { 239 emit newGalileoEph(eph); 240 } 252 241 } 253 242 … … 255 244 //////////////////////////////////////////////////////////////////////////// 256 245 void t_bncCore::slotNewSBASEph(t_ephSBAS eph) { 257 QMutexLocker locker(&_mutex); 258 259 t_irc irc = _ephUser.putNewEph(&eph, true); 260 if (eph.checkState() == t_eph::bad) { 261 return; 262 } 263 264 emit newSBASEph(eph); 265 266 printEphHeader(); 267 printEph(eph, (irc == success)); 246 if (checkPrintEph(&eph) == success) { 247 emit newSBASEph(eph); 248 } 268 249 } 269 250 -
trunk/BNC/src/bnccore.h
r6484 r6520 111 111 112 112 private: 113 void printEphHeader(); 114 void printEph(const t_eph& eph, bool printFile); 115 void printOutputEph(bool printFile, QTextStream* stream, 116 const QString& strV2, const QString& strV3); 117 void messagePrivate(const QByteArray& msg); 113 t_irc checkPrintEph(t_eph* eph); 114 void printEphHeader(); 115 void printEph(const t_eph& eph, bool printFile); 116 void printOutputEph(bool printFile, QTextStream* stream, 117 const QString& strV2, const QString& strV3); 118 void messagePrivate(const QByteArray& msg); 118 119 119 120 QSettings::SettingsMap _settings; -
trunk/BNC/src/bncephuser.cpp
r6519 r6520 185 185 return; 186 186 } 187 187 188 }
Note:
See TracChangeset
for help on using the changeset viewer.