Changeset 255 in ntrip
- Timestamp:
- Oct 18, 2006, 3:41:58 PM (19 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncgetthread.cpp ¶
r250 r255 36 36 _mountPoint = mountPoint; 37 37 _staID = mountPoint.path().mid(1).toAscii(); 38 _staID_orig = _staID; 38 39 _format = format; 39 40 _socket = 0; 40 41 _timeOut = 20*1000; // 20 seconds 41 42 _nextSleep = 1; // 1 second 43 44 // Check name conflict 45 // ------------------- 46 QSettings settings; 47 QListIterator<QString> it(settings.value("mountPoints").toStringList()); 48 int num = 0; 49 int ind = 0; 50 while (it.hasNext()) { 51 QStringList hlp = it.next().split(" "); 52 if (hlp.size() <= 1) continue; 53 QUrl url(hlp[0]); 54 if (_mountPoint.path() == url.path()) { 55 ++num; 56 if (_mountPoint.host() == url.host()) { 57 ind = num - 1; 58 } 59 } 60 } 61 if (num > 1) { 62 _staID = _staID.left(_staID.length()-1) + QString("%1").arg(ind).toAscii(); 63 } 42 64 } 43 65 … … 143 165 if (line.indexOf("STR") == 0) { 144 166 QStringList tags = line.split(";"); 145 if (tags.at(1) == _staID) { 167 if (tags.at(1) == _staID_orig) { 146 168 net = tags.at(7); 147 169 break; -
TabularUnified trunk/BNC/bncgetthread.h ¶
r138 r255 38 38 QUrl _mountPoint; 39 39 QByteArray _staID; 40 QByteArray _staID_orig; 40 41 QByteArray _format; 41 42 int _timeOut; -
TabularUnified trunk/BNC/bncrinex.cpp ¶
r238 r255 231 231 double antennaNEU[3]; antennaNEU[0] = antennaNEU[1] = antennaNEU[2] = 0.0; 232 232 233 _out << " 2.10 OBSERVATION DATA G (GPS)RINEX VERSION / TYPE" << endl;233 _out << " 2.10 OBSERVATION DATA M (MIXED) RINEX VERSION / TYPE" << endl; 234 234 QString hlp = QDate::currentDate().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); 235 235 _out << _pgmName.toAscii().data() << _userName.toAscii().data()
Note:
See TracChangeset
for help on using the changeset viewer.