Changeset 3717 in ntrip for trunk/BNC/rinex
- Timestamp:
- Feb 23, 2012, 5:59:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxobsfile.h
r3716 r3717 26 26 #define RNXOBSFILE_H 27 27 28 #include <QString> 29 28 30 #include <fstream> 29 #include <string>30 31 #include <vector> 31 32 #include <map> … … 58 59 }; 59 60 60 t_rnxObsFile(const std::string& fileName);61 t_rnxObsFile(const QString& fileName); 61 62 ~t_rnxObsFile(); 62 63 … … 64 65 double interval() const {return _header._interval;} 65 66 int nTypes(char sys) const {return _header.nTypes(sys);} 66 const std::string&fileName() const {return _fileName;}67 const std::string&obsType(char sys, int index) const {return _header.obsType(sys, index);}68 const std::string&antennaName() const {return _header._antennaName;}69 const std::string&markerName() const {return _header._markerName;}67 const QString& fileName() const {return _fileName;} 68 const QString& obsType(char sys, int index) const {return _header.obsType(sys, index);} 69 const QString& antennaName() const {return _header._antennaName;} 70 const QString& markerName() const {return _header._markerName;} 70 71 const ColumnVector& xyz() const {return _header._xyz;} 71 72 const ColumnVector& antNEU() const {return _header._antNEU;} … … 82 83 protected: 83 84 t_rnxObsFile() {}; 84 void open(const std::string& fileName);85 void open(const QString& fileName); 85 86 void close(); 86 87 … … 91 92 ~t_rnxObsHeader(); 92 93 93 t_irc 94 int 95 const std::string& obsType(char sys, int index) const;94 t_irc read(std::ifstream* stream, int maxLines = 0); 95 int nTypes(char sys) const; 96 const QString& obsType(char sys, int index) const; 96 97 97 static const std::string _emptyStr;98 float 99 double 100 std::string _antennaName;101 std::string _markerName;102 ColumnVector 103 ColumnVector 104 ColumnVector 105 ColumnVector 106 std::vector< std::string> _obsTypesV2;107 std::map<char, std::vector< std::string> > _obsTypesV3;108 int 109 int 98 static const QString _emptyStr; 99 float _version; 100 double _interval; 101 QString _antennaName; 102 QString _markerName; 103 ColumnVector _antNEU; 104 ColumnVector _antXYZ; 105 ColumnVector _antBSG; 106 ColumnVector _xyz; 107 std::vector<QString> _obsTypesV2; 108 std::map<char, std::vector<QString> > _obsTypesV3; 109 int _wlFactorsL1[MAXPRN_GPS+1]; 110 int _wlFactorsL2[MAXPRN_GPS+1]; 110 111 }; 111 112 112 113 const t_rnxEpo* nextEpochV2(); 113 114 const t_rnxEpo* nextEpochV3(); 114 void handleEpochFlag(int flag, const std::string& line);115 void handleEpochFlag(int flag, const QString& line); 115 116 116 std::string_fileName;117 QString _fileName; 117 118 t_rnxObsHeader _header; 118 119 std::ifstream* _stream;
Note:
See TracChangeset
for help on using the changeset viewer.