5#include <vitrio/export.hpp>
6#include <vitrio/image_reader_provider.hpp>
7#include <vitrio/platform.hpp>
42 std::shared_ptr<image_reader_provider>
backing,
43 std::shared_ptr<image_scratch>
scratch
48 std::shared_ptr<const image_reader>
52 VITRIO_STD_MEMBER_INTERFACE
53 std::shared_ptr<image_reader_provider> m_backing;
54 VITRIO_STD_MEMBER_INTERFACE
55 std::shared_ptr<image_scratch> m_scratch;
Interface to serve image_reader given a key.
Definition image_reader_provider.hpp:26
A provider that serves files through a scratch.
Definition scratch_image_reader_provider.hpp:31
scratch_image_reader_provider(std::shared_ptr< image_reader_provider > backing, std::shared_ptr< image_scratch > scratch)
Construct a provider serving through a scratch.
std::shared_ptr< const image_reader > acquire(const std::string &key) override
Get the reader a key names.
A view of a contiguous sequence of elements.
Definition span.hpp:29