Porytiles
|
Imports a Png from the filesystem. More...
#include <png_importer.hpp>
Public Member Functions | |
virtual | ~PngImporter ()=default |
virtual std::expected< std::unique_ptr< Png >, std::string > | Read (const std::filesystem::path &path) const =0 |
Imports a Png at a given path from the filesystem. | |
Imports a Png from the filesystem.
Definition at line 15 of file png_importer.hpp.
|
virtualdefault |
|
pure virtual |
Imports a Png at a given path from the filesystem.
If the given path does not exist or does not describe a file in valid PNG format, it returns an error message. Otherwise, the initialized Png is returned.
path | The path of the Png to import. |
Implemented in porytiles::PngImporterImpl.