Changeset 6507 in ntrip for trunk/BNC/src
- Timestamp:
- Dec 29, 2014, 3:32:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/satObs.cpp
r6506 r6507 19 19 // 20 20 //////////////////////////////////////////////////////////////////////////// 21 void t_clkCorr::writeEpoch( std::ostream* out, const QList<t_clkCorr>& corrList) {21 void t_clkCorr::writeEpoch(ostream* out, const QList<t_clkCorr>& corrList) { 22 22 if (!out || corrList.size() == 0) { 23 23 return; … … 43 43 // 44 44 //////////////////////////////////////////////////////////////////////////// 45 void t_clkCorr::readEpoch(const string& epoLine, std::istream& in, QList<t_clkCorr>& corrList) {45 void t_clkCorr::readEpoch(const string& epoLine, istream& inStream, QList<t_clkCorr>& corrList) { 46 46 bncTime epoTime; 47 47 int numCorr; … … 54 54 55 55 string line; 56 getline(in , line);56 getline(inStream, line); 57 57 istringstream in(line.c_str()); 58 58 … … 74 74 // 75 75 //////////////////////////////////////////////////////////////////////////// 76 void t_orbCorr::writeEpoch( std::ostream* out, const QList<t_orbCorr>& corrList) {76 void t_orbCorr::writeEpoch(ostream* out, const QList<t_orbCorr>& corrList) { 77 77 if (!out || corrList.size() == 0) { 78 78 return; … … 101 101 // 102 102 //////////////////////////////////////////////////////////////////////////// 103 void t_orbCorr::readEpoch(const string& epoLine, std::istream& in, QList<t_orbCorr>& corrList) {103 void t_orbCorr::readEpoch(const string& epoLine, istream& inStream, QList<t_orbCorr>& corrList) { 104 104 bncTime epoTime; 105 105 int numCorr; … … 112 112 113 113 string line; 114 getline(in , line);114 getline(inStream, line); 115 115 istringstream in(line.c_str()); 116 116 … … 125 125 // 126 126 //////////////////////////////////////////////////////////////////////////// 127 void t_satCodeBias::writeEpoch( std::ostream* out, const QList<t_satCodeBias>& biasList) {127 void t_satCodeBias::writeEpoch(ostream* out, const QList<t_satCodeBias>& biasList) { 128 128 if (!out || biasList.size() == 0) { 129 129 return; … … 152 152 // 153 153 //////////////////////////////////////////////////////////////////////////// 154 void t_satCodeBias::readEpoch(const string& epoLine, std::istream& in, QList<t_satCodeBias>& biasList) {154 void t_satCodeBias::readEpoch(const string& epoLine, istream& inStream, QList<t_satCodeBias>& biasList) { 155 155 bncTime epoTime; 156 156 int numSat; … … 163 163 164 164 string line; 165 getline(in , line);165 getline(inStream, line); 166 166 istringstream in(line.c_str()); 167 167 … … 182 182 // 183 183 //////////////////////////////////////////////////////////////////////////// 184 void t_satPhaseBias::writeEpoch( std::ostream* out, const QList<t_satPhaseBias>& biasList) {184 void t_satPhaseBias::writeEpoch(ostream* out, const QList<t_satPhaseBias>& biasList) { 185 185 if (!out || biasList.size() == 0) { 186 186 return; … … 214 214 // 215 215 //////////////////////////////////////////////////////////////////////////// 216 void t_satPhaseBias::readEpoch(const string& epoLine, std::istream& in, QList<t_satPhaseBias>& biasList) {216 void t_satPhaseBias::readEpoch(const string& epoLine, istream& inStream, QList<t_satPhaseBias>& biasList) { 217 217 bncTime epoTime; 218 218 int numSat; … … 225 225 226 226 string line; 227 getline(in , line);227 getline(inStream, line); 228 228 istringstream in(line.c_str()); 229 229 … … 246 246 // 247 247 //////////////////////////////////////////////////////////////////////////// 248 void t_vTec::write( std::ostream* out, const t_vTec& vTec) {248 void t_vTec::write(ostream* out, const t_vTec& vTec) { 249 249 if (!out || vTec._layers.size() == 0) { 250 250 return; … … 268 268 // 269 269 //////////////////////////////////////////////////////////////////////////// 270 void t_vTec::read(const string& epoLine, std::istream& in, t_vTec& vTec) { 270 void 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 } 271 297 } 272 298
Note:
See TracChangeset
for help on using the changeset viewer.