Changeset 6500 in ntrip for trunk/BNC


Ignore:
Timestamp:
Dec 29, 2014, 2:42:30 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6499 r6500  
    187187t_corrSSR::e_type t_corrSSR::readEpoLine(const string& line, bncTime& epoTime) {
    188188
    189 }
     189  istringstream inLine(line.c_str());
     190
     191  char   epoChar;
     192  string typeString;
     193  int    year, month, day, hour, min;
     194  double sec;
     195
     196  inLine >> epoChar >> typeString >> year >> month >> day >> hour >> min >> sec;
     197
     198  if (epoChar == '>') {
     199    epoTime.set(year, month, day, hour, min, sec);
     200    if      (typeString == "CLOCK") {
     201      return clkCorr;
     202    }
     203    else if (typeString == "ORBIT") {
     204      return orbCorr;
     205    }
     206    else if (typeString == "CODE_BIAS") {
     207      return codeBias;
     208    }
     209    else if (typeString == "PHASE_BIAS") {
     210      return phaseBias;
     211    }
     212    else if (typeString == "VTEC") {
     213      return vTec;
     214    }
     215  }
     216
     217  return unknown;
     218}
Note: See TracChangeset for help on using the changeset viewer.