| 258 | } |
| 259 | |
| 260 | void FASTAFile::store(const String &filename, const vector<FASTAEntry> &data) const |
| 261 | { |
| 262 | startProgress(0, data.size(), "Writing FASTA file"); |
| 263 | FASTAFile f; |
| 264 | f.writeStart(filename); |
| 265 | for (const FASTAFile::FASTAEntry& it : data) |
| 266 | { |
| 267 | f.writeNext(it); |
| 268 | nextProgress(); |
| 269 | } |
| 270 | f.writeEnd(); // close file |
| 271 | endProgress(); |
| 272 | } |
| 273 | |
| 274 | } // namespace OpenMS |