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


Ignore:
Timestamp:
May 10, 2023, 11:19:40 AM (11 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r9567 r10038  
    4949class t_satObs {
    5050 public:
    51   t_satObs() {}
     51  t_satObs() {
     52    _type = 0;
     53  }
    5254  t_satObs(const t_satObs& old) { // copy constructor (deep copy)
    5355    _staID = old._staID;
     
    6264   * Destructor of satellite measurement storage class
    6365   */
    64   ~t_satObs()
    65   {
     66  ~t_satObs() {
    6667    clear();
    6768  }
     
    7071   * Cleanup function resets all elements to initial state.
    7172   */
    72   inline void clear(void)
    73   {
     73  inline void clear(void) {
    7474    for (unsigned ii = 0; ii < _obs.size(); ii++)
    7575      delete _obs[ii];
     
    9292 public:
    9393  t_orbCorr();
     94  t_orbCorr(const t_orbCorr& old) { // copy constructor (deep copy)
     95    _staID      = old._staID;
     96    _prn        = old._prn;
     97    _iod        = old._iod;
     98    _time       = old._time;
     99    _updateInt  = old._updateInt;
     100    _system     = old._system;
     101    _xr         = old._xr;
     102    _dotXr      = old._dotXr;
     103  }
    94104  static void writeEpoch(std::ostream* out, const QList<t_orbCorr>& corrList);
    95105  static void readEpoch(const std::string& epoLine, std::istream& in, QList<t_orbCorr>& corrList);
     
    107117 public:
    108118  t_clkCorr();
     119  t_clkCorr(const t_clkCorr& old) { // copy constructor (deep copy)
     120    _staID      = old._staID;
     121    _prn        = old._prn;
     122    _iod        = old._iod;
     123    _time       = old._time;
     124    _updateInt  = old._updateInt;
     125    _dClk       = old._dClk;
     126    _dotDClk    = old._dotDClk;
     127    _dotDotDClk = old._dotDotDClk;
     128  }
    109129  static void writeEpoch(std::ostream* out, const QList<t_clkCorr>& corrList);
    110130  static void readEpoch(const std::string& epoLine, std::istream& in, QList<t_clkCorr>& corrList);
     
    143163class t_satCodeBias {
    144164 public:
     165  t_satCodeBias() {
     166    _updateInt = 0;
     167  }
     168  t_satCodeBias(const t_satCodeBias& old) { // copy constructor (deep copy)
     169    _staID      = old._staID;
     170    _prn        = old._prn;
     171    _time       = old._time;
     172    _updateInt  = old._updateInt;
     173    for (unsigned ii = 0; ii < old._bias.size(); ii++) {
     174      _bias.push_back(old._bias[ii]);
     175    }
     176  }
    145177  static void writeEpoch(std::ostream* out, const QList<t_satCodeBias>& biasList);
    146178  static void readEpoch(const std::string& epoLine, std::istream& in, QList<t_satCodeBias>& biasList);
     
    175207    _yaw        = 0.0;
    176208    _yawRate    = 0.0;
     209  }
     210  t_satPhaseBias(const t_satPhaseBias& old) { // copy constructor (deep copy)
     211    _staID      = old._staID;
     212    _prn        = old._prn;
     213    _time       = old._time;
     214    _updateInt  = old._updateInt;
     215    _dispBiasConstistInd = old._dispBiasConstistInd;
     216    _MWConsistInd        = old._MWConsistInd;
     217    _yaw                 = old._yaw;
     218    _yawRate             = old._yawRate;
     219    for (unsigned ii = 0; ii < old._bias.size(); ii++) {
     220      _bias.push_back(old._bias[ii]);
     221    }
    177222  }
    178223  static void writeEpoch(std::ostream* out, const QList<t_satPhaseBias>& biasList);
     
    201246class t_vTec {
    202247 public:
     248  t_vTec(){
     249    _updateInt = 0;
     250  }
     251  t_vTec(const t_vTec& old) { // copy constructor (deep copy)
     252    _staID      = old._staID;
     253    _time       = old._time;
     254    _updateInt  = old._updateInt;
     255    for (unsigned ii = 0; ii < old._layers.size(); ii++) {
     256      _layers.push_back(old._layers[ii]);
     257    }
     258  }
    203259  static void write(std::ostream* out, const t_vTec& vTec);
    204260  static void read(const std::string& epoLine, std::istream& in, t_vTec& vTec);
Note: See TracChangeset for help on using the changeset viewer.