| 10 | namespace core { |
| 11 | |
| 12 | CSVReader::CSVReader(const std::string& file, const char sep, const char quote) |
| 13 | : filename_(file), sep_(sep), quote_(quote) { |
| 14 | uf_ = std::make_shared<std::ifstream>(filename_, std::ios_base::binary); |
| 15 | f_ = std::make_shared<bxz::istream>(*uf_); |
| 16 | if (!uf_->good() || !f_->good()) { |
| 17 | throw std::runtime_error( |
| 18 | "CSVReader: could not open file <" + filename_ + ">"); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | CSVReader::CSVReader( |
| 23 | const std::shared_ptr<std::istream>& uf, |
nothing calls this directly
no outgoing calls
no test coverage detected