52 [[nodiscard]] std::string
getXmpPathForImage(std::string_view source_image_path)
const override;
69 const std::string m_app_data_dir;
74 std::unique_ptr<IXmpProvider> m_xmp_provider;
Implementation of IXmpPathStrategy that stores XMP files in a centralized AppData directory.
std::string getXmpPathForImage(std::string_view source_image_path) const override
Calculates the XMP file path associated with a given source image path.
AppDataXmpPathStrategy & operator=(const AppDataXmpPathStrategy &)=delete
std::string getImagePathFromXmp(std::string_view xmp_path) const override
Calculates the source image path associated with a given XMP file path.
AppDataXmpPathStrategy(AppDataXmpPathStrategy &&)=delete
AppDataXmpPathStrategy & operator=(AppDataXmpPathStrategy &&)=delete
~AppDataXmpPathStrategy() override=default
AppDataXmpPathStrategy(const std::string &app_data_dir)
Constructs an AppDataXmpPathStrategy.
AppDataXmpPathStrategy(const AppDataXmpPathStrategy &)=delete
Interface defining the strategy for determining XMP file paths based on image paths.
Declaration of IXmpPathStrategy interface.
Declaration of IXmpProvider interface.