Changeset 6180 in ntrip


Ignore:
Timestamp:
Sep 14, 2014, 2:34:58 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r6179 r6180  
    99//
    1010////////////////////////////////////////////////////////////////////////////
    11 t_clkCorr::t_clkCorr() {
     11t_clkCorr::t_clkCorr(const string& line) {
     12  reset();
     13  istringstream in(line);
     14}
     15
     16//
     17////////////////////////////////////////////////////////////////////////////
     18void t_clkCorr::reset() {
    1219  _iod        = 0;
    1320  _dClk       = 0.0;
     
    1926//
    2027////////////////////////////////////////////////////////////////////////////
    21 t_clkCorr::t_clkCorr(const string& line) {
    22   istringstream in(line);
    23 }
    24 
    25 //
    26 ////////////////////////////////////////////////////////////////////////////
    2728string t_clkCorr::toLine() const {
    2829  ostringstream str;
    2930  str.setf(ios::showpoint | ios::fixed);
    3031  str << "C " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
    31       << _prn.toString() << ' ' << setw(2) << _iod << ' '
     32      << _prn.toString() << ' ' << setw(3) << _iod << ' '
    3233      << setw(10) << setprecision(4) << _dClk       * t_CST::c << ' '
    3334      << setw(10) << setprecision(4) << _dotDClk    * t_CST::c << ' '
     
    3839//
    3940////////////////////////////////////////////////////////////////////////////
    40 t_orbCorr::t_orbCorr() {
     41t_orbCorr::t_orbCorr(const string& line) {
     42  reset();
     43  istringstream in(line);
     44}
     45
     46//
     47////////////////////////////////////////////////////////////////////////////
     48void t_orbCorr::reset() {
    4149  _xr.ReSize(3);    _xr    = 0.0;
    4250  _dotXr.ReSize(3); _dotXr = 0.0;
     
    4755//
    4856////////////////////////////////////////////////////////////////////////////
    49 t_orbCorr::t_orbCorr(const string& line) {
    50   istringstream in(line);
    51 }
    52 
    53 //
    54 ////////////////////////////////////////////////////////////////////////////
    5557string t_orbCorr::toLine() const {
    5658  ostringstream str;
    5759  str.setf(ios::showpoint | ios::fixed);
    5860  str << "O " << _time.gpsw() << ' ' << setprecision(2) << _time.gpssec() << ' '
    59       << _prn.toString() << ' ' << setw(2) << _iod << ' '
     61      << _prn.toString() << ' ' << setw(3) << _iod << ' '
    6062      << setw(10) << setprecision(4) << _xr[0]     << ' '
    6163      << setw(10) << setprecision(4) << _xr[1]     << ' '
     
    6466      << setw(10) << setprecision(4) << _dotXr[1]  << ' '
    6567      << setw(10) << setprecision(4) << _dotXr[2]  << endl;
    66 
    6768  return str.str();
    6869}
  • trunk/BNC/src/satObs.h

    r6175 r6180  
    5959class t_orbCorr {
    6060 public:
    61   t_orbCorr();
     61  t_orbCorr() {reset();}
    6262  t_orbCorr(const std::string& line);
     63  void           reset();
    6364  t_prn          prn() const {return _prn;}
    6465  unsigned short IOD() const {return _iod;}
     
    7576class t_clkCorr {
    7677 public:
    77   t_clkCorr();
     78  t_clkCorr() {reset();}
    7879  t_clkCorr(const std::string& line);
     80  void           reset();
    7981  t_prn          prn() const {return _prn;}
    8082  unsigned short IOD() const {return _iod;}
Note: See TracChangeset for help on using the changeset viewer.