33 #include "../../Core/IOData/file_system.h"
34 #include "provider_type.h"
43 template<
class Prov
iderClass>
62 const std::string &filename,
66 return ProviderClass::load(filename, fs, srgb);
73 return ProviderClass::load(file, srgb);
78 const std::string &filename,
81 ProviderClass::save(buffer, filename, fs);
88 ProviderClass::save(buffer, file);
virtual void save(PixelBuffer buffer, IODevice &file) override
Definition: provider_type_register.h:84
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:61
Class template to register a provider type.
Definition: provider_type_register.h:45
I/O Device interface.
Definition: iodevice.h:51
Provider type.
Definition: provider_type.h:45
ProviderType_Register(const std::string &type)
Registers provider type in the ProviderFactory.
Definition: provider_type_register.h:51
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:76
virtual PixelBuffer load(IODevice &file, bool srgb) override
Definition: provider_type_register.h:69
Virtual File System (VFS).
Definition: file_system.h:48
Pixel data container.
Definition: pixel_buffer.h:69