#include <FileBlockManager.h>


Definition at line 51 of file FileBlockManager.h.
| Public Member Functions | |
| virtual const std::string & | getPath () const | 
| return the path, if any, of the storage backing | |
| virtual std::string | getFileName () const | 
| return the filename (without path) | |
| virtual std::string | getBlock (uint64_t index) | 
| get the block at the given index | |
| virtual size_t | setBlock (uint64_t index, const std::string &buffer) | 
| set the block at the given index | |
| virtual int | open (const std::string &path, const char *mode) | 
| open the block manager. The path may be used by some to open a file with a given mode | |
| virtual bool | isOpen () const | 
| return whether the block manager is open | |
| virtual int | close () | 
| close the block manager, flushing to disk and cleaning up state | |
| virtual int | flush () | 
| flush storage, e.g. to disk | |
 1.5.5
 1.5.5