Changeset 196 in ntrip for trunk/BNC/bnctabledlg.cpp


Ignore:
Timestamp:
Sep 25, 2006, 7:58:17 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r195 r196  
    152152void bncTableDlg::slotGetTable() {
    153153
    154   QStringList allLines;
     154  _allLines.clear();
    155155
    156156  if ( getFullTable(_casterHostLineEdit->text(),
    157157                    _casterPortLineEdit->text().toInt(),
    158                     allLines) != success ) {
     158                    _allLines) != success ) {
    159159    QMessageBox::warning(0, "BNC", "Cannot retrieve table of data");
    160160    return;
     
    162162
    163163  QStringList lines;
    164   QStringListIterator it(allLines);
     164  QStringListIterator it(_allLines);
    165165  while (it.hasNext()) {
    166166    QString line = it.next();
     
    245245}
    246246
    247 //
     247// Create RINEX skeleton header
    248248////////////////////////////////////////////////////////////////////////////
    249249void bncTableDlg::slotSkl() {
    250   QStringList fullTable;
    251   bncTableDlg::getFullTable("www.euref-ip.net", 80, fullTable);
    252 
    253   cout << fullTable.join("").toAscii().data() << endl;
    254 
    255 }
     250
     251  int nRows = _table->rowCount();
     252  for (int iRow = 0; iRow < nRows; iRow++) {
     253    if (_table->isItemSelected(_table->item(iRow,1))) {
     254      QString staID = _table->item(iRow,0)->text();
     255      QString net   = _table->item(iRow,6)->text();
     256
     257      cout << (staID + " " + net).toAscii().data() << endl;
     258
     259      QString ftpDir;
     260      QStringListIterator it(_allLines);
     261      while (it.hasNext()) {
     262        QString line = it.next();
     263        if (line.indexOf("NET") == 0) {
     264          QStringList tags = line.split(';');
     265          if (tags.at(1) == net) {
     266            ftpDir = tags.at(6);
     267            break;
     268          }
     269        }
     270      }
     271
     272      cout << ftpDir.toAscii().data() << endl;
     273
     274    }
     275  }
     276
     277}
Note: See TracChangeset for help on using the changeset viewer.