36 lines
756 B
C++
36 lines
756 B
C++
#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<IFilesystem> 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<IFilesystem> m_filesystem;
|
|
};
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
}
|