libcryfs/implementations/onblocks/BlobOnBlocks.h

32 lines
555 B
C
Raw Normal View History

#pragma once
#ifndef BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_BLOBONBLOCKS_H_
#define BLOBSTORE_IMPLEMENTATIONS_ONBLOCKS_BLOBONBLOCKS_H_
2015-02-17 00:40:34 +01:00
#include "../../interface/Blob.h"
2014-12-09 17:56:48 +01:00
#include <memory>
namespace blobstore {
namespace onblocks {
namespace datanodestore {
class DataNode;
}
2014-12-09 17:56:48 +01:00
class BlobOnBlocks: public Blob {
public:
BlobOnBlocks(std::unique_ptr<datanodestore::DataNode> rootnode);
virtual ~BlobOnBlocks();
2014-12-09 17:56:48 +01:00
size_t size() const override;
void flush() const override;
2014-12-09 17:56:48 +01:00
private:
std::unique_ptr<datanodestore::DataNode> _rootnode;
};
}
}
#endif