Skip to content
Snippets Groups Projects
Commit e3fbd52a authored by Olivier Langella's avatar Olivier Langella
Browse files

wip

parent 3e5615be
No related branches found
No related tags found
No related merge requests found
......@@ -44,9 +44,22 @@ bool IdentificationDataSource::operator==(const IdentificationDataSource& other)
}
IdentificationDataSourceSp IdentificationDataSource::getInstance(const QString & location) {
QFileInfo location_file(location);
QString ext = location_file.suffix();
IdentificationDataSource * IdentificationDataSource::getInstance(const QString & location) {
std::map< QString, IdentificationDataSource* >::iterator it = _map_identification_data_sources.find(location);
if (it != _map_identification_data_sources.end()) {
return it->second;
}
else {
QFileInfo location_file(location);
QString ext = location_file.suffix();
QString sample_name = location_file.baseName();
if (ext.toLower() == "xml") {
//X!Tandem result file
MsRunIdSp msrunid_sp =
}
}
}
const QString & IdentificationDataSource::getResourceName () const {
......
......@@ -28,14 +28,10 @@
#include <map>
class IdentificationDataSource;
typedef std::shared_ptr<IdentificationDataSource> IdentificationDataSourceSp;
class IdentificationDataSource
{
public:
static IdentificationDataSourceSp getInstance(const QString & location);
static IdentificationDataSource * getInstance(const QString & location);
IdentificationDataSource(pappso::MsRunIdSp & ms_run_sp);
IdentificationDataSource(const IdentificationDataSource& other);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment