#include <blockio.h>
Inheritance diagram for BlockIO:


Public Types | |
| enum | OpenStatus { OS_FAILED = -1, OS_OPENED = 0, OS_CREATED = 1 } |
| Size of All Blocks, in Bytes. More... | |
Public Member Functions | |
| BlockIO (int blocksize=4096) | |
| virtual OpenStatus | open (const char *name)=0 |
| virtual bool const | is_open ()=0 |
| virtual void | close ()=0 |
| virtual bool | get (void *buf, int buflen, BlockNum blockno)=0 |
| virtual bool | put (void *buf, int buflen, BlockNum blockno)=0 |
| unsigned long | blocksRead () const |
| unsigned long | blocksWritten () const |
Protected Attributes | |
| BlockIO::stats | stats |
| int | blocksize |
???
Definition at line 55 of file blockio.h.
|
|
Size of All Blocks, in Bytes.
Definition at line 66 of file blockio.h.
00066 {
00067 OS_FAILED = -1,
00068 OS_OPENED = 0,
00069 OS_CREATED = 1,
00070 };
|
|
|
Definition at line 72 of file blockio.h. References blocksize.
00073 : blocksize(blocksize) 00074 {} |
|
|
Definition at line 85 of file blockio.h.
00085 { return stats.blocks_read; }
|
|
|
Definition at line 86 of file blockio.h.
00086 { return stats.blocks_written; }
|
|
|
Implemented in FileBlockIO. |
|
||||||||||||||||
|
Implemented in FileBlockIO. |
|
|
Implemented in FileBlockIO. |
|
|
Implemented in FileBlockIO. |
|
||||||||||||||||
|
Implemented in FileBlockIO. |
|
|
Definition at line 63 of file blockio.h. Referenced by BlockIO(), FileBlockIO::FileBlockIO(), FileBlockIO::get(), and FileBlockIO::put(). |
|
|
Referenced by FileBlockIO::get(), and FileBlockIO::put(). |
1.3.4