Changeset 6507 in ntrip


Ignore:
Timestamp:
Dec 29, 2014, 3:32:28 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6506 r6507  
    1919//
    2020////////////////////////////////////////////////////////////////////////////
    21 void t_clkCorr::writeEpoch(std::ostream* out, const QList<t_clkCorr>& corrList) {
     21void t_clkCorr::writeEpoch(ostream* out, const QList<t_clkCorr>& corrList) {
    2222  if (!out || corrList.size() == 0) {
    2323    return;
     
    4343//
    4444////////////////////////////////////////////////////////////////////////////
    45 void t_clkCorr::readEpoch(const string& epoLine, std::istream& in, QList<t_clkCorr>& corrList) {
     45void t_clkCorr::readEpoch(const string& epoLine, istream& inStream, QList<t_clkCorr>& corrList) {
    4646  bncTime epoTime;
    4747  int     numCorr;
     
    5454
    5555    string line;
    56     getline(in, line);
     56    getline(inStream, line);
    5757    istringstream in(line.c_str());
    5858   
     
    7474//
    7575////////////////////////////////////////////////////////////////////////////
    76 void t_orbCorr::writeEpoch(std::ostream* out, const QList<t_orbCorr>& corrList) {
     76void t_orbCorr::writeEpoch(ostream* out, const QList<t_orbCorr>& corrList) {
    7777  if (!out || corrList.size() == 0) {
    7878    return;
     
    101101//
    102102////////////////////////////////////////////////////////////////////////////
    103 void t_orbCorr::readEpoch(const string& epoLine, std::istream& in, QList<t_orbCorr>& corrList) {
     103void t_orbCorr::readEpoch(const string& epoLine, istream& inStream, QList<t_orbCorr>& corrList) {
    104104  bncTime epoTime;
    105105  int     numCorr;
     
    112112
    113113    string line;
    114     getline(in, line);
     114    getline(inStream, line);
    115115    istringstream in(line.c_str());
    116116   
     
    125125//
    126126////////////////////////////////////////////////////////////////////////////
    127 void t_satCodeBias::writeEpoch(std::ostream* out, const QList<t_satCodeBias>& biasList) {
     127void t_satCodeBias::writeEpoch(ostream* out, const QList<t_satCodeBias>& biasList) {
    128128  if (!out || biasList.size() == 0) {
    129129    return;
     
    152152//
    153153////////////////////////////////////////////////////////////////////////////
    154 void t_satCodeBias::readEpoch(const string& epoLine, std::istream& in, QList<t_satCodeBias>& biasList) {
     154void t_satCodeBias::readEpoch(const string& epoLine, istream& inStream, QList<t_satCodeBias>& biasList) {
    155155  bncTime epoTime;
    156156  int     numSat;
     
    163163
    164164    string line;
    165     getline(in, line);
     165    getline(inStream, line);
    166166    istringstream in(line.c_str());
    167167   
     
    182182//
    183183////////////////////////////////////////////////////////////////////////////
    184 void t_satPhaseBias::writeEpoch(std::ostream* out, const QList<t_satPhaseBias>& biasList) {
     184void t_satPhaseBias::writeEpoch(ostream* out, const QList<t_satPhaseBias>& biasList) {
    185185  if (!out || biasList.size() == 0) {
    186186    return;
     
    214214//
    215215////////////////////////////////////////////////////////////////////////////
    216 void t_satPhaseBias::readEpoch(const string& epoLine, std::istream& in, QList<t_satPhaseBias>& biasList) {
     216void t_satPhaseBias::readEpoch(const string& epoLine, istream& inStream, QList<t_satPhaseBias>& biasList) {
    217217  bncTime epoTime;
    218218  int     numSat;
     
    225225
    226226    string line;
    227     getline(in, line);
     227    getline(inStream, line);
    228228    istringstream in(line.c_str());
    229229   
     
    246246//
    247247////////////////////////////////////////////////////////////////////////////
    248 void t_vTec::write(std::ostream* out, const t_vTec& vTec) {
     248void t_vTec::write(ostream* out, const t_vTec& vTec) {
    249249  if (!out || vTec._layers.size() == 0) {
    250250    return;
     
    268268//
    269269////////////////////////////////////////////////////////////////////////////
    270 void t_vTec::read(const string& epoLine, std::istream& in, t_vTec& vTec) {
     270void t_vTec::read(const string& epoLine, istream& inStream, t_vTec& vTec) {
     271  bncTime epoTime;
     272  int     numLayers;
     273  string  staID;
     274  if (t_corrSSR::readEpoLine(epoLine, epoTime, numLayers, staID) != t_corrSSR::vTec) {
     275    return;
     276  }
     277  if (numLayers <= 0) {
     278    return;
     279  }
     280  for (int ii = 0; ii < numLayers; ii++) {
     281    t_vTecLayer layer;
     282
     283    string line;
     284    getline(inStream, line);
     285    istringstream in(line.c_str());
     286
     287    int dummy, maxDeg, maxOrd;
     288    in >> dummy >> maxDeg >> maxOrd;
     289
     290    layer._C.ReSize(maxDeg, maxOrd);
     291    layer._S.ReSize(maxDeg, maxOrd);
     292
     293    ////    inStream >> layer._C >> layer._S;
     294
     295    vTec._layers.push_back(layer);
     296  }
    271297}
    272298
Note: See TracChangeset for help on using the changeset viewer.