Changeset 3651 in ntrip


Ignore:
Timestamp:
Jan 24, 2012, 1:02:15 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rnxobsfile.cpp

    r3650 r3651  
    4848////////////////////////////////////////////////////////////////////////////
    4949t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() {
     50  _version = 0.0;
    5051}
    5152
     
    6061  while (stream->status() == QTextStream::Ok && !stream->atEnd()) {
    6162    QString line = stream->readLine();
    62     QString value = line.left(60);
    63     QString key   = line.mid(60);
    64     if (key == "END OF HEADER") {
     63    QString value = line.left(60).trimmed();
     64    QString key   = line.mid(60).trimmed();
     65    if      (key == "END OF HEADER") {
    6566      break;
    6667    }
    67     cout << key.toAscii().data() << ": >" << value.toAscii().data() << "<\n";
     68    QTextStream in(value.toAscii(), QIODevice::ReadOnly);
     69    if (key == "RINEX VERSION / TYPE") {
     70      in >> _version;
     71    }
    6872  }
     73
     74  cout << "RINEX Version = " << _version << endl;
    6975
    7076  return success;
  • trunk/BNC/rnxobsfile.h

    r3646 r3651  
    4040    t_irc read(QTextStream* stream);
    4141   private:
     42    float _version;
    4243  };
    4344 
Note: See TracChangeset for help on using the changeset viewer.