Changeset 3656 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jan 31, 2012, 6:31:52 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rnxobsfile.cpp

    r3652 r3656  
    4848////////////////////////////////////////////////////////////////////////////
    4949t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() {
    50   _version = 0.0;
     50  _antNEU[0] = _antNEU[1] = _antNEU[2] = 0.0;
     51  _xyz[0]    = _xyz[1]    = _xyz[2]    = 0.0;
     52  _version   = 0.0;
    5153}
    5254
     
    6163  while (stream->status() == QTextStream::Ok && !stream->atEnd()) {
    6264    QString line = stream->readLine();
     65    if (line.isEmpty()) {
     66      continue;
     67    }
    6368    QString value = line.left(60).trimmed();
    6469    QString key   = line.mid(60).trimmed();
     
    7580    else if (key == "ANT # / TYPE") {
    7681      _antennaName = value.mid(20);
     82    }
     83    else if (key == "APPROX POSITION XYZ") {
     84      QTextStream in(value.toAscii(), QIODevice::ReadOnly);
     85      in >> _xyz[0] >> _xyz[1] >> _xyz[2];
     86    }
     87    else if (key == "ANTENNA: DELTA H/E/N") {
     88      QTextStream in(value.toAscii(), QIODevice::ReadOnly);
     89      in >> _antNEU[2] >> _antNEU[1] >> _antNEU[0];
    7790    }
    7891  }
     
    106119////////////////////////////////////////////////////////////////////////////
    107120t_irc t_rnxObsFile::getEpoch() {
    108 
     121  while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) {
     122    QString line = _stream->readLine();
     123    if (line.isEmpty()) {
     124      continue;
     125    }
     126  }
    109127  return success;
    110128}
  • trunk/BNC/rnxobsfile.h

    r3652 r3656  
    4343    QString _antennaName;
    4444    QString _markerName;
     45    double  _antNEU[3];
     46    double  _xyz[3];
    4547  };
    4648 
Note: See TracChangeset for help on using the changeset viewer.