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
8
#include <
porytiles2/png/png.hpp
>
9
#include <
porytiles2/png/png_importer.hpp
>
10
11
namespace
porytiles
{
12
13
class
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
porytiles::PngImporterImpl
Definition
png_importer_impl.hpp:13
porytiles::PngImporterImpl::Read
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.
Definition
png_importer_impl.cpp:18
porytiles::PngImporterImpl::PngImporterImpl
PngImporterImpl()=default
porytiles::PngImporter
Imports a Png from the filesystem.
Definition
png_importer.hpp:15
porytiles
Definition
rgba_anim.hpp:7
png.hpp
png_importer.hpp
Porytiles2
lib
png
impl
png_importer_impl.hpp
Generated by
1.9.8