FileBlockManager Class Reference
[BlockManagers]

#include <FileBlockManager.h>

Inheritance diagram for FileBlockManager:

Inheritance graph
[legend]
Collaboration diagram for FileBlockManager:

Collaboration graph
[legend]

List of all members.


Detailed Description

The FileBlockManager provides a BlockManager interface by interfacing directly with the filesystem. Often used below a BufferedBlockManager.

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

The documentation for this class was generated from the following files:

Generated on Sat Oct 4 21:30:27 2008 for Mace Library by  doxygen 1.5.5