Porytiles
|
#include <png_importer_impl.hpp>
Public Member Functions | |
PngImporterImpl ()=default | |
std::expected< std::unique_ptr< Png >, std::string > | Read (const std::filesystem::path &path) const override |
Imports a Png at a given path from the filesystem. | |
![]() | |
virtual | ~PngImporter ()=default |
Definition at line 13 of file png_importer_impl.hpp.
|
default |
|
overridevirtual |
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. |
Implements porytiles::PngImporter.
Definition at line 18 of file png_importer_impl.cpp.