| 25 | unzip); |
| 26 | } |
| 27 | void LineReader::init_(const std::shared_ptr<std::istream>& f, bool unzip) { |
| 28 | f_ = f; |
| 29 | if (unzip) { |
| 30 | uf_ = std::make_shared<bxz::istream>(*f_); |
| 31 | } |
| 32 | if (!f_->good() || (uf_ && !uf_->good())) { |
| 33 | throw std::runtime_error( |
| 34 | "LineReader: could not open file <" + filename_ + ">"); |
| 35 | } |
| 36 | } |
| 37 | LineReader::LineReader( |
| 38 | const std::shared_ptr<std::istream>& f, |
| 39 | const std::string& key, |
nothing calls this directly
no outgoing calls
no test coverage detected