| 185 | } |
| 186 | |
| 187 | bool FASTAFile::setPosition(const std::streampos &pos) |
| 188 | { |
| 189 | if (pos <= fileSize_) |
| 190 | { |
| 191 | infile_.clear(); // when end of file is reached, otherwise it gets -1 |
| 192 | infile_.seekg(pos); |
| 193 | return true; |
| 194 | } |
| 195 | return false; |
| 196 | } |
| 197 | |
| 198 | bool FASTAFile::atEnd() |
| 199 | { |