ff7tk  0.02
Toolkit for making FF7 Tools
LgpIO Class Reference

#include <Lgp_p.h>

Inheritance diagram for LgpIO:

Public Member Functions

 LgpIO (QIODevice *lgp, const LgpHeaderEntry *header, QObject *parent=0)
 
bool open (OpenMode mode)
 
qint64 size () const
 
bool canReadLine () const
 

Protected Member Functions

qint64 readData (char *data, qint64 maxSize)
 
qint64 writeData (const char *data, qint64 maxSize)
 You cannot write more than the initial file size. More...
 

Private Attributes

QIODevice * _lgp
 
const LgpHeaderEntry_header
 

Detailed Description

Definition at line 100 of file Lgp_p.h.

Constructor & Destructor Documentation

LgpIO::LgpIO ( QIODevice *  lgp,
const LgpHeaderEntry header,
QObject *  parent = 0 
)

Definition at line 168 of file Lgp_p.cpp.

Member Function Documentation

bool LgpIO::canReadLine ( ) const

Definition at line 213 of file Lgp_p.cpp.

References size().

bool LgpIO::open ( OpenMode  mode)

Definition at line 173 of file Lgp_p.cpp.

qint64 LgpIO::readData ( char *  data,
qint64  maxSize 
)
protected

Definition at line 186 of file Lgp_p.cpp.

References _header, _lgp, LgpHeaderEntry::filePosition(), and size().

qint64 LgpIO::size ( ) const

Definition at line 181 of file Lgp_p.cpp.

References _header, and LgpHeaderEntry::fileSize().

Referenced by canReadLine(), readData(), and writeData().

qint64 LgpIO::writeData ( const char *  data,
qint64  maxSize 
)
protected

You cannot write more than the initial file size.

Definition at line 201 of file Lgp_p.cpp.

References _header, _lgp, LgpHeaderEntry::filePosition(), and size().

Member Data Documentation

QIODevice* LgpIO::_lgp
private

Definition at line 111 of file Lgp_p.h.

Referenced by readData(), and writeData().


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