| 336 | } |
| 337 | |
| 338 | stream::MapResourceStream::Ptr MapResource::openFileStream(const std::string& path) |
| 339 | { |
| 340 | // Call the factory method to acquire a stream |
| 341 | auto stream = stream::MapResourceStream::OpenFromPath(path); |
| 342 | |
| 343 | if (!stream->isOpen()) |
| 344 | { |
| 345 | throw OperationException(fmt::format(_("Could not open file:\n{0}"), path)); |
| 346 | } |
| 347 | |
| 348 | return stream; |
| 349 | } |
| 350 | |
| 351 | stream::MapResourceStream::Ptr MapResource::openMapfileStream() |
| 352 | { |
nothing calls this directly
no test coverage detected