ISLEman
Public Member Functions | List of all members
FileStorage Class Reference

Store implementation based on a file. More...

#include <filestorage.h>

Inheritance diagram for FileStorage:
StorageIntf

Public Member Functions

 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 ()
 

Detailed Description

Store implementation based on a file.

Writing is linear, after that the file is re-opened for reading. Reading is random (seek+read).

Member Function Documentation

§ read()

int FileStorage::read ( char *  buf,
uint  size 
)
inlinevirtual

Read size bytes from the store into buf.

Implements StorageIntf.

§ write()

int FileStorage::write ( const char *  buf,
uint  size 
)
inlinevirtual

Write size bytes from buf into the store.

Implements StorageIntf.


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