19#include <vrs/VrsExport.h>
20#include <vrs/WriteFileHandler.h>
40 virtual void newChunk(
const string& path,
size_t index,
bool isLastChunk) = 0;
51 : chunkHandler_{chunkHandler.get()} {
52 if (chunkHandler_ !=
nullptr) {
56 void notify(
size_t indexOffset = 0,
bool isLastChunk =
false) {
57 if (chunkHandler_ !=
nullptr) {
58 chunkHandler_->newChunk(path_, index_ + indexOffset, isLastChunk);
Listener to be notified when a new file chunk is finalized.
Definition NewChunkHandler.h:28
virtual void newChunk(const string &path, size_t index, bool isLastChunk)=0
Helper to make new chunks notifications simpler and safer.
Definition NewChunkHandler.h:48
The WriteFileHandler interface adds write operations to the FileHandler interface.
Definition WriteFileHandler.h:43
virtual bool getCurrentChunk(string &outChunkPath, size_t &outChunkIndex) const =0
Get the path of the current chunk, or an empty string if no chunk is open.
Definition Compressor.cpp:113