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)
init(0, "");
this -> name = name;
basename = extract_basename(name);
filenames.push_back(this->name);
}
BioReader::BioReader(int extract_field, string extract_separator, int mark_pos)
......@@ -157,6 +158,7 @@ void BioReader::add(const string &filename, bool verbose) {
name += filename;
basename += extract_basename(filename);
filenames.push_back(name);
if (verbose)
cout << " <== " << filename ;
......
......@@ -189,6 +189,7 @@ public:
string name;
string basename;
list<string> filenames;
int size() 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