| 320 | } |
| 321 | |
| 322 | bool MdfReader::Open() { |
| 323 | if (!file_) { |
| 324 | MDF_ERROR() << |
| 325 | "No stream buffer has been assigned. Invalid use of the function"; |
| 326 | return false; |
| 327 | } |
| 328 | |
| 329 | // Note that the above function will return true if it isn't a file |
| 330 | // buffer. |
| 331 | return detail::OpenMdfFile(*file_, filename_, |
| 332 | std::ios_base::in | std::ios_base::binary); |
| 333 | } |
| 334 | |
| 335 | bool MdfReader::IsOpen() const { |
| 336 | std::streambuf* buffer = file_.get(); |
nothing calls this directly
no test coverage detected