Changeset 4480 in ntrip
- Timestamp:
- Aug 3, 2012, 7:16:51 PM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/rnxobsfile.cpp
r4233 r4480 48 48 using namespace std; 49 49 50 const QString t_rnxObs File::t_rnxObsHeader::_emptyStr;50 const QString t_rnxObsHeader::_emptyStr; 51 51 52 52 // Constructor 53 53 //////////////////////////////////////////////////////////////////////////// 54 t_rnxObs File::t_rnxObsHeader::t_rnxObsHeader() {54 t_rnxObsHeader::t_rnxObsHeader() { 55 55 _antNEU.ReSize(3); _antNEU = 0.0; 56 56 _antXYZ.ReSize(3); _antXYZ = 0.0; … … 67 67 // Destructor 68 68 //////////////////////////////////////////////////////////////////////////// 69 t_rnxObs File::t_rnxObsHeader::~t_rnxObsHeader() {69 t_rnxObsHeader::~t_rnxObsHeader() { 70 70 } 71 71 72 72 // Read Header 73 73 //////////////////////////////////////////////////////////////////////////// 74 t_irc t_rnxObs File::t_rnxObsHeader::read(QTextStream* stream, int maxLines) {74 t_irc t_rnxObsHeader::read(QTextStream* stream, int maxLines) { 75 75 int numLines = 0; 76 76 while ( stream->status() == QTextStream::Ok && !stream->atEnd() ) { … … 205 205 // Number of Observation Types (satellite-system specific) 206 206 //////////////////////////////////////////////////////////////////////////// 207 int t_rnxObs File::t_rnxObsHeader::nTypes(char sys) const {207 int t_rnxObsHeader::nTypes(char sys) const { 208 208 if (_version < 3.0) { 209 209 return _obsTypesV2.size(); … … 221 221 // Observation Type (satellite-system specific) 222 222 //////////////////////////////////////////////////////////////////////////// 223 const QString& t_rnxObs File::t_rnxObsHeader::obsType(char sys, int index) const {223 const QString& t_rnxObsHeader::obsType(char sys, int index) const { 224 224 if (_version < 3.0) { 225 225 return _obsTypesV2.at(index); -
trunk/BNC/src/rinex/rnxobsfile.h
r4137 r4480 37 37 38 38 #define MAXPRN_GPS 32 39 40 class t_rnxObsHeader { 41 public: 42 t_rnxObsHeader(); 43 ~t_rnxObsHeader(); 44 45 t_irc read(QTextStream* stream, int maxLines = 0); 46 int nTypes(char sys) const; 47 const QString& obsType(char sys, int index) const; 48 49 static const QString _emptyStr; 50 float _version; 51 double _interval; 52 QString _antennaNumber; 53 QString _antennaName; 54 QString _markerName; 55 QString _markerNumber; 56 QString _observer; 57 QString _agency; 58 QString _receiverNumber; 59 QString _receiverType; 60 QString _receiverVersion; 61 ColumnVector _antNEU; 62 ColumnVector _antXYZ; 63 ColumnVector _antBSG; 64 ColumnVector _xyz; 65 QVector<QString> _obsTypesV2; 66 QMap<char, QVector<QString> > _obsTypesV3; 67 int _wlFactorsL1[MAXPRN_GPS+1]; 68 int _wlFactorsL2[MAXPRN_GPS+1]; 69 bncTime _startTime; 70 }; 39 71 40 72 class t_rnxObsFile { … … 99 131 } 100 132 101 protected:102 t_rnxObsFile() {};103 void openRead(const QString& fileName);104 void openWrite(const QString& fileName);105 void close();106 107 private:108 class t_rnxObsHeader {109 public:110 t_rnxObsHeader();111 ~t_rnxObsHeader();112 113 t_irc read(QTextStream* stream, int maxLines = 0);114 int nTypes(char sys) const;115 const QString& obsType(char sys, int index) const;116 117 static const QString _emptyStr;118 float _version;119 double _interval;120 QString _antennaNumber;121 QString _antennaName;122 QString _markerName;123 QString _markerNumber;124 QString _observer;125 QString _agency;126 QString _receiverNumber;127 QString _receiverType;128 QString _receiverVersion;129 ColumnVector _antNEU;130 ColumnVector _antXYZ;131 ColumnVector _antBSG;132 ColumnVector _xyz;133 QVector<QString> _obsTypesV2;134 QMap<char, QVector<QString> > _obsTypesV3;135 int _wlFactorsL1[MAXPRN_GPS+1];136 int _wlFactorsL2[MAXPRN_GPS+1];137 bncTime _startTime;138 };139 140 public:141 133 const t_rnxObsHeader& header() const {return _header;} 142 134 void setHeader(const t_rnxObsHeader& header, double version); … … 149 141 enum e_trafo {trafoNone, trafo2to3, trafo3to2}; 150 142 143 t_rnxObsFile() {}; 144 void openRead(const QString& fileName); 145 void openWrite(const QString& fileName); 146 void close(); 151 147 void writeEpochV2(const t_rnxEpo* epo); 152 148 void writeEpochV3(const t_rnxEpo* epo);
Note:
See TracChangeset
for help on using the changeset viewer.