- Timestamp:
- Aug 18, 2015, 10:28:08 AM (9 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r7203 r7218 44 44 45 45 #include "pppClient.h" 46 #include "pppUtils.h" 46 47 #include "bncephuser.h" 47 48 #include "bncutils.h" … … 53 54 //////////////////////////////////////////////////////////////////////////// 54 55 t_pppClient::t_pppClient(const t_pppOptions* opt) { 55 56 _opt = new t_pppOptions(*opt); 57 _filter = new t_pppFilter(this); 58 _epoData = new t_epoData(); 59 _log = new ostringstream(); 60 _ephUser = new bncEphUser(false); 61 62 for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) { 63 _satCodeBiases[ii] = 0; 64 } 65 56 _opt = new t_pppOptions(*opt); 57 _filter = new t_pppFilter(this); 58 _epoData = new t_epoData(); 59 _log = new ostringstream(); 60 _ephUser = new bncEphUser(false); 61 _pppUtils = new t_pppUtils(); 66 62 } 67 63 … … 69 65 //////////////////////////////////////////////////////////////////////////// 70 66 t_pppClient::~t_pppClient() { 71 72 for (unsigned ii = 0; ii <= t_prn::MAXPRN; ii++) {73 delete _satCodeBiases[ii];74 }75 76 67 delete _filter; 77 68 delete _epoData; … … 112 103 t_frqObs* frqObs = obs->_obs[ifrq]; 113 104 double cb = 0.0; 114 const t_satCodeBias* satCB = satCodeBias(prn);105 const t_satCodeBias* satCB = _pppUtils->satCodeBias(prn); 115 106 if (satCB && satCB->_bias.size()) { 116 107 for (unsigned ii = 0; ii < satCB->_bias.size(); ii++) { … … 337 328 void t_pppClient::putCodeBiases(const std::vector<t_satCodeBias*>& satCodeBias) { 338 329 for (unsigned ii = 0; ii < satCodeBias.size(); ii++) { 339 putCodeBias(new t_satCodeBias(*satCodeBias[ii]));330 _pppUtils->putCodeBias(new t_satCodeBias(*satCodeBias[ii])); 340 331 } 341 332 } … … 412 403 return failure; 413 404 } 414 415 void t_pppClient::putCodeBias(t_satCodeBias* satCodeBias) {416 int iPrn = satCodeBias->_prn.toInt();417 delete _satCodeBiases[iPrn];418 _satCodeBiases[iPrn] = satCodeBias;419 } -
trunk/BNC/src/PPP/pppClient.h
r7203 r7218 32 32 #include "pppOptions.h" 33 33 #include "pppFilter.h" 34 #include "pppUtils.h" 34 35 35 36 class bncEphUser; … … 49 50 std::ostringstream& log() {return *_log;} 50 51 const t_pppOptions* opt() const {return _opt;} 51 void putCodeBias(t_satCodeBias* satCodeBias);52 const t_satCodeBias* satCodeBias(const t_prn& prn) const {53 return _satCodeBiases[prn.toInt()];54 }52 //void putCodeBias(t_satCodeBias* satCodeBias); 53 //const t_satCodeBias* satCodeBias(const t_prn& prn) const { 54 // return _satCodeBiases[prn.toInt()]; 55 //} 55 56 private: 56 57 t_irc getSatPos(const bncTime& tt, const QString& prn, ColumnVector& xc, ColumnVector& vv); … … 58 59 t_irc cmpToT(t_satData* satData); 59 60 60 t_satCodeBias* _satCodeBiases[t_prn::MAXPRN+1];61 // t_satCodeBias* _satCodeBiases[t_prn::MAXPRN+1]; 61 62 bncEphUser* _ephUser; 62 63 t_pppOptions* _opt; 63 64 t_epoData* _epoData; 64 65 t_pppFilter* _filter; 66 t_pppUtils* _pppUtils; 65 67 std::ostringstream* _log; 66 68 };
Note:
See TracChangeset
for help on using the changeset viewer.