Changeset 3672 in ntrip


Ignore:
Timestamp:
Feb 12, 2012, 9:37:03 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rnxobsfile.cpp

    r3656 r3672  
    4848////////////////////////////////////////////////////////////////////////////
    4949t_rnxObsFile::t_rnxObsHeader::t_rnxObsHeader() {
    50   _antNEU[0] = _antNEU[1] = _antNEU[2] = 0.0;
    51   _xyz[0]    = _xyz[1]    = _xyz[2]    = 0.0;
    52   _version   = 0.0;
     50  _antNEU.ReSize(3);
     51  _xyz.ReSize(3);   
     52  _antNEU  = 0.0;
     53  _xyz     = 0.0;
     54  _version = 0.0;
    5355}
    5456
     
    8890      QTextStream in(value.toAscii(), QIODevice::ReadOnly);
    8991      in >> _antNEU[2] >> _antNEU[1] >> _antNEU[0];
     92    }
     93    else if (key == "# / TYPES OF OBSERV") {
     94      QTextStream in(value.toAscii(), QIODevice::ReadOnly);
     95      int nTypes;
     96      in >> nTypes;
     97      for (int ii = 0; ii < nTypes; ii++) {
     98        QString hlp;
     99        in >> hlp;
     100        _obsTypes << hlp;
     101      }
    90102    }
    91103  }
  • trunk/BNC/rnxobsfile.h

    r3656 r3672  
    2727
    2828#include <QtCore>
     29#include "newmat.h"
    2930#include "bncconst.h"
    3031
     
    3940    ~t_rnxObsHeader();
    4041    t_irc read(QTextStream* stream);
     42    float version() const {return _version;}
     43    int   nTypes() const {return _obsTypes.size();}
     44    const QString& obsType(int index) const {return _obsTypes.at(index);}
     45    const QString& antennaName() const {return _antennaName;}
     46    const QString& markerName() const {return _markerName;}
     47    const ColumnVector& xyz() const {return _xyz;}
     48    const ColumnVector& antNEU() const {return _antNEU;}
    4149   private:
    42     float   _version;
    43     QString _antennaName;
    44     QString _markerName;
    45     double  _antNEU[3];
    46     double  _xyz[3];
     50    float        _version;
     51    QString      _antennaName;
     52    QString      _markerName;
     53    ColumnVector _antNEU;
     54    ColumnVector _xyz;
     55    QStringList  _obsTypes;
    4756  };
    4857 
Note: See TracChangeset for help on using the changeset viewer.