Commit 2d0b5908 authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud

bioreader.cpp: Store filenames separately

parent ec7cb42a
...@@ -126,6 +126,7 @@ BioReader::BioReader(bool virtualfasta, string name) ...@@ -126,6 +126,7 @@ BioReader::BioReader(bool virtualfasta, string name)
init(0, ""); init(0, "");
this -> name = name; this -> name = name;
basename = extract_basename(name); basename = extract_basename(name);
filenames.push_back(this->name);
} }
BioReader::BioReader(int extract_field, string extract_separator, int mark_pos) BioReader::BioReader(int extract_field, string extract_separator, int mark_pos)
...@@ -157,6 +158,7 @@ void BioReader::add(const string &filename, bool verbose) { ...@@ -157,6 +158,7 @@ void BioReader::add(const string &filename, bool verbose) {
name += filename; name += filename;
basename += extract_basename(filename); basename += extract_basename(filename);
filenames.push_back(name);
if (verbose) if (verbose)
cout << " <== " << filename ; cout << " <== " << filename ;
......
...@@ -189,6 +189,7 @@ public: ...@@ -189,6 +189,7 @@ public:
string name; string name;
string basename; string basename;
list<string> filenames;
int size() const; int size() const;
size_t totalSize() const; size_t totalSize() const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment