|
My Project
|
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.
References m_file.
|
inline |
Definition at line 39 of file filestorage.h.
References m_file.
Referenced by parseInput().
|
inline |
Definition at line 36 of file filestorage.h.
References m_file, and m_readOnly.
Referenced by parseInput().
|
inline |
Definition at line 38 of file filestorage.h.
References m_file.
Referenced by EntryNav::saveEntry().
|
inlinevirtual |
Read size bytes from the store into buf.
Implements StorageIntf.
Definition at line 34 of file filestorage.h.
References m_file.
|
inline |
Definition at line 37 of file filestorage.h.
References m_file.
Referenced by EntryNav::loadEntry().
|
inline |
Definition at line 40 of file filestorage.h.
References m_file.
Referenced by parseInput().
|
inlinevirtual |
Write size bytes from buf into the store.
Implements StorageIntf.
Definition at line 35 of file filestorage.h.
References m_file, and m_readOnly.
|
private |
Definition at line 43 of file filestorage.h.
Referenced by close(), FileStorage(), open(), pos(), read(), seek(), setName(), and write().
|
private |
Definition at line 42 of file filestorage.h.