Changeset 4080 in ntrip for trunk/BNC


Ignore:
Timestamp:
Apr 28, 2012, 4:36:13 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/reqcedit.cpp

    r4054 r4080  
    112112  while (it.hasNext()) {
    113113    QString fileName = it.next();
    114     t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
    115     _rnxObsFiles.append(rnxObsFile);
     114    if (fileName.indexOf('*') != -1 || fileName.indexOf('?') != -1) {
     115      QFileInfo fileInfo(fileName);
     116      QDir dir = fileInfo.dir();
     117      QStringList filters; filters << fileInfo.fileName();
     118      QListIterator<QFileInfo> it(dir.entryInfoList(filters));
     119      while (it.hasNext()) {
     120        QString filePath = it.next().filePath();
     121        t_rnxObsFile* rnxObsFile = new t_rnxObsFile(filePath, t_rnxObsFile::input);
     122        _rnxObsFiles.append(rnxObsFile);
     123      }
     124    }
     125    else {
     126      t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
     127      _rnxObsFiles.append(rnxObsFile);
     128    }
    116129  }
    117130  qStableSort(_rnxObsFiles.begin(), _rnxObsFiles.end(),
Note: See TracChangeset for help on using the changeset viewer.