Instead of preloading the image, just explicitly load it in fe-write and change

the writeDiskCommand interface to take an Image rather than an ImageReader.
This commit is contained in:
dg
2021-12-01 19:58:24 +00:00
parent 3033a2cb95
commit f97c42017f
14 changed files with 36 additions and 53 deletions

View File

@@ -81,7 +81,7 @@ public:
ImageReader(config)
{}
std::unique_ptr<Image> readImageImpl()
std::unique_ptr<Image> readImage()
{
std::ifstream inputFile(_config.filename(), std::ios::in | std::ios::binary);
if (!inputFile.is_open())