Store implementation based on a file. Writing is linear, after that the file is re-opened for reading. Reading is random (seek+read). More...
#include <filestorage.h>
Public Member Functions | |
FileStorage () | |
FileStorage (const QString &name) | |
int | read (char *buf, uint size) |
int | write (const char *buf, uint size) |
bool | open (int m) |
bool | seek (int64 pos) |
int64 | pos () const |
void | close () |
void | setName (const char *name) |
Public Member Functions inherited from StorageIntf | |
virtual | ~StorageIntf () |
Private Attributes | |
bool | m_readOnly |
QFile | m_file |
Store implementation based on a file. Writing is linear, after that the file is re-opened for reading. Reading is random (seek+read).
Definition at line 28 of file filestorage.h.
|
inline |
Definition at line 31 of file filestorage.h.
|
inline |
Definition at line 32 of file filestorage.h.
|
inline |
Definition at line 39 of file filestorage.h.
|
inline |
Definition at line 36 of file filestorage.h.
|
inline |
Definition at line 38 of file filestorage.h.
|
inlinevirtual |
Read size bytes from the store into buf.
Implements StorageIntf.
Definition at line 34 of file filestorage.h.
Definition at line 37 of file filestorage.h.
|
inline |
Definition at line 40 of file filestorage.h.
|
inlinevirtual |
Write size bytes from buf into the store.
Implements StorageIntf.
Definition at line 35 of file filestorage.h.
|
private |
Definition at line 43 of file filestorage.h.
|
private |
Definition at line 42 of file filestorage.h.