libcryfs/implementations/onblocks/BlobOnBlocks.h
2015-02-17 00:40:34 +01:00

32 lines
555 B
C++

#pragma once
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_BLOBONBLOCKS_H_
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_BLOBONBLOCKS_H_
#include "../../interface/Blob.h"
#include <memory>
namespace blobstore {
namespace onblocks {
namespace datanodestore {
class DataNode;
}
class BlobOnBlocks: public Blob {
public:
BlobOnBlocks(std::unique_ptr<datanodestore::DataNode> rootnode);
virtual ~BlobOnBlocks();
size_t size() const override;
void flush() const override;
private:
std::unique_ptr<datanodestore::DataNode> _rootnode;
};
}
}
#endif