Changeset 3672 in ntrip
- Timestamp:
- Feb 12, 2012, 9:37:03 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rnxobsfile.cpp
r3656 r3672 48 48 //////////////////////////////////////////////////////////////////////////// 49 49 t_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; 53 55 } 54 56 … … 88 90 QTextStream in(value.toAscii(), QIODevice::ReadOnly); 89 91 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 } 90 102 } 91 103 } -
trunk/BNC/rnxobsfile.h
r3656 r3672 27 27 28 28 #include <QtCore> 29 #include "newmat.h" 29 30 #include "bncconst.h" 30 31 … … 39 40 ~t_rnxObsHeader(); 40 41 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;} 41 49 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; 47 56 }; 48 57
Note:
See TracChangeset
for help on using the changeset viewer.