| 53 | } |
| 54 | |
| 55 | bool ReadAll(std::string *line) { |
| 56 | if (is_ == &std::cin) { |
| 57 | LOG(ERROR) << "ReadAll is not supported for stdin."; |
| 58 | return false; |
| 59 | } |
| 60 | line->assign(std::istreambuf_iterator<char>(*is_), |
| 61 | std::istreambuf_iterator<char>()); |
| 62 | return true; |
| 63 | } |
| 64 | |
| 65 | private: |
| 66 | util::Status status_; |
no test coverage detected