- Timestamp:
- Feb 11, 2012, 6:33:19 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncephuser.cpp
r3670 r3671 154 154 // 155 155 //////////////////////////////////////////////////////////////////////////// 156 voidbncEphUser::putNewEph(t_eph* newEph) {156 t_irc bncEphUser::putNewEph(t_eph* newEph) { 157 157 158 158 QMutexLocker locker(&_mutex); 159 159 160 160 if (!newEph) { 161 return ;161 return failure; 162 162 } 163 163 164 164 QString prn = newEph->prn(); 165 166 t_irc irc = failure; 165 167 166 168 if (_eph.contains(prn)) { … … 170 172 _eph.value(prn)->prev = _eph.value(prn)->last; 171 173 _eph.value(prn)->last = newEph; 174 irc = success; 172 175 } 173 176 } 174 177 else { 175 178 _eph.insert(prn, new t_ephPair(newEph)); 176 } 177 ephBufferChanged(); 179 irc = success; 180 } 181 182 if (irc == success) { 183 ephBufferChanged(); 184 } 185 186 return irc; 178 187 } 179 188 -
trunk/BNC/bncephuser.h
r3670 r3671 105 105 } 106 106 107 voidputNewEph(t_eph* eph);107 t_irc putNewEph(t_eph* eph); 108 108 109 109 public slots: -
trunk/BNC/bncpostprocess.cpp
r3670 r3671 97 97 cout << "corrFile: " << _opt->corrFileName.toAscii().data() << endl; 98 98 99 t_eph* eph ;99 t_eph* eph = 0; 100 100 while (_rnxNavFile->getNextEph(eph) == success) { 101 _pppClient->putNewEph(eph); 101 if (_pppClient->putNewEph(eph) != success) { 102 delete eph; eph = 0; 103 } 102 104 } 103 105
Note:
See TracChangeset
for help on using the changeset viewer.