- Timestamp:
- Feb 16, 2012, 4:15:01 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rnxobsfile.cpp
r3706 r3707 103 103 } 104 104 else if (key == "SYS / # / OBS TYPES") { 105 QTextStream in(value.toAscii(), QIODevice::ReadOnly);105 QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly); 106 106 char sys; 107 107 int nTypes; 108 in >> sys >> nTypes;108 *in >> sys >> nTypes; 109 109 for (int ii = 0; ii < nTypes; ii++) { 110 if (ii > 0 && ii % 13 == 0) { 111 line = stream->readLine(); 112 delete in; 113 in = new QTextStream(line.toAscii(), QIODevice::ReadOnly); 114 } 110 115 QString hlp; 111 in >> hlp;116 *in >> hlp; 112 117 _obsTypesV3[sys] << hlp; 113 118 } 119 delete in; 114 120 } 115 121 } -
trunk/BNC/rnxobsfile.h
r3704 r3707 48 48 else { 49 49 if (_obsTypesV3.find(sys) != _obsTypesV3.end()) { 50 return _obsTypesV3 .size();50 return _obsTypesV3[sys].size(); 51 51 } 52 52 else {
Note:
See TracChangeset
for help on using the changeset viewer.