31#include "../../Core/IOData/file_system.h"
32#include "provider_type.h"
41 template<
class Prov
iderClass>
52 const std::string &filename,
56 return ProviderClass::load(filename, fs, srgb);
63 return ProviderClass::load(file, srgb);
68 const std::string &filename,
71 ProviderClass::save(buffer, filename, fs);
78 ProviderClass::save(buffer, file);
Virtual File System (VFS).
Definition file_system.h:47
I/O Device interface.
Definition iodevice.h:50
Provider type.
Definition provider_type.h:43
Pixel data container.
Definition pixel_buffer.h:68
Class template to register a provider type.
Definition provider_type_register.h:43
virtual PixelBuffer load(IODevice &file, bool srgb) override
Definition provider_type_register.h:59
virtual void save(PixelBuffer buffer, const std::string &filename, FileSystem &fs) override
Called to save a given PixelBuffer to a file.
Definition provider_type_register.h:66
virtual PixelBuffer load(const std::string &filename, const FileSystem &fs, bool srgb) override
Called to load an image with this provider type.
Definition provider_type_register.h:51
ProviderType_Register(const std::string &type)
Registers provider type in the ProviderFactory.
Definition provider_type_register.h:46
virtual void save(PixelBuffer buffer, IODevice &file) override
Definition provider_type_register.h:74