Porytiles
Loading...
Searching...
No Matches
png_importer_impl.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <expected>
4#include <filesystem>
5#include <memory>
6#include <string>
7
10
11namespace porytiles {
12
13class PngImporterImpl final : public PngImporter {
14 public:
15 PngImporterImpl() = default;
16
17 [[nodiscard]] std::expected<std::unique_ptr<Png>, std::string>
18 Read(const std::filesystem::path &path) const override;
19};
20
21} // namespace porytiles
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.
Imports a Png from the filesystem.