X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/e45bacc6bd342a1b19e42b62133ddabc99aa9edd..14cd6d834ab531525a51c6a6992583b3e9143e02:/Parameters.cpp diff --git a/Parameters.cpp b/Parameters.cpp index c903f5d..2ee6255 100644 --- a/Parameters.cpp +++ b/Parameters.cpp @@ -836,7 +836,7 @@ void Parameters::loadImplementationsFromXml() throw(Exception) { if (compList != "none") { QStringList compos = compList.split(","); foreach(QString s, compos) { - impl->addSource(s); + impl->addResource(s); } } @@ -949,54 +949,64 @@ void Parameters::loadSources() throw(Exception) { cout << "analyzing " << qPrintable(sourcePathes.at(i)) << endl; QDir dir(sourcePathes.at(i)); QStringList filter; - filter << "*.vhd"; + filter << "*.vhd" << "*.ngc"; dir.setNameFilters(filter); QStringList list = dir.entryList(); for(int j=0;jgetName() == name) return s; +QList Parameters::searchResourceByName(const QString& name) { + QList listRes; + foreach(ExternalResource* s, availableResources) { + if (s->getName() == name) { + listRes.append(s); + } } - return NULL; + return listRes; } void Parameters::addAvailableBlock(ReferenceBlock *block) {