#pragma once #include "fs/AbsPath.h" #include "fs/zip/ZipWriter.h" #include "tl/ptr.h" namespace fs { class IFilesystem; ////////////////////////////////////////////////////////////////////////// class FS_API StoreFileWriter { public: StoreFileWriter(AbsPath i_filePath, tl::lent_ref i_filesystem); StoreFileWriter(const StoreFileWriter&) = delete; StoreFileWriter& operator=(const StoreFileWriter&) = delete; StoreFileWriter(StoreFileWriter&&) = default; StoreFileWriter& operator=(StoreFileWriter&&) = default; ZipWriter::DataWriterResult operator()(IStreamSink& i_sink); private: AbsPath m_filePath; tl::lent_ref m_filesystem; }; ////////////////////////////////////////////////////////////////////////// }