CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
i_xmp_provider.h
Go to the documentation of this file.
1
9#pragma once
10
11#include <string>
12
13namespace CaptureMoment::Core {
14
15namespace Serializer {
16
25public:
29 virtual ~IXmpProvider() = default;
30
37 [[nodiscard]] virtual std::string readXmp(std::string_view file_path) const = 0;
38
49 [[nodiscard]] virtual bool writeXmp(std::string_view filePath, std::string_view xmpData) const = 0;
50};
51
52} // namespace Serializer
53
54} // namespace CaptureMoment::Core
Interface abstracting the service for reading/writing raw XMP packets to/from files.
virtual std::string readXmp(std::string_view file_path) const =0
Reads the raw XMP packet data from the specified file.
virtual bool writeXmp(std::string_view filePath, std::string_view xmpData) const =0
Writes the provided raw XMP packet data to the specified file.
virtual ~IXmpProvider()=default
Virtual destructor for safe inheritance.
Manages the lifecycle of a single IWorkingImage instance.
CaptureMoment — footer