Changeset 6137 in ntrip for trunk/BNC/src/satObs.h


Ignore:
Timestamp:
Sep 13, 2014, 12:19:37 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/satObs.h

    r6135 r6137  
    4242 public:
    4343  t_satObs() {}
     44  t_satObs(const t_satObs& old) { // copy constructor (deep copy)
     45    _staID = old._staID;
     46    _prn   = old._prn;
     47    _time  = old._time;
     48    for (unsigned ii = 0; ii < old._obs.size(); ii++) {
     49      _obs.push_back(new t_frqObs(*old._obs[ii]));
     50    }
     51  }
    4452  ~t_satObs() {for (unsigned ii = 0; ii < _obs.size(); ii++) delete _obs[ii];}
     53  std::string            _staID;
    4554  t_prn                  _prn;
    4655  bncTime                _time;
Note: See TracChangeset for help on using the changeset viewer.