ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Public Member Functions | Protected Member Functions | List of all members
IsoArchive Class Reference

#include <IsoArchive.h>

Inheritance diagram for IsoArchive:
Inheritance graph
[legend]

Public Member Functions

 IsoArchive ()
 
 IsoArchive (const QString &name)
 
virtual ~IsoArchive ()
 
virtual bool open (QIODevice::OpenMode mode)
 
virtual bool isOpen () const
 
virtual void close ()
 
QString fileName () const
 
void setFileName (const QString &fileName)
 
QString errorString () const
 
const IsoArchiveIOio () const
 
bool pack (IsoArchive *destination, ArchiveObserver *control=nullptr, IsoDirectory *directory=nullptr)
 
void applyModifications (IsoDirectory *directory)
 
QByteArray file (const QString &path, quint32 maxSize=0) const
 
QIODevice * fileDevice (const QString &path) const
 
QByteArray modifiedFile (const QString &path, quint32 maxSize=0) const
 
QIODevice * modifiedFileDevice (const QString &path) const
 
bool extract (const QString &path, const QString &destination, quint32 maxSize=0) const
 
bool extractDir (const QString &path, const QString &destination) const
 
void extractAll (const QString &destination) const
 
qint32 diffCountSectors (const QString &path, quint32 newSize) const
 
IsoDirectoryrootDirectory () const
 
Archive::ArchiveError error () const
 

Protected Member Functions

virtual bool reorganizeModifiedFilesAfter (QMap< quint32, const IsoFile * > &writeToTheMain, QList< const IsoFile * > &writeToTheEnd)
 Used to extend IsoArchive. Called in pack() after file reorganization. More...
 
void setError (Archive::ArchiveError error, const QString &errorString=QString())
 

Constructor & Destructor Documentation

◆ IsoArchive() [1/2]

IsoArchive::IsoArchive ( )

◆ IsoArchive() [2/2]

IsoArchive::IsoArchive ( const QString &  name)
explicit

◆ ~IsoArchive()

IsoArchive::~IsoArchive ( )
virtual

Member Function Documentation

◆ applyModifications()

void IsoArchive::applyModifications ( IsoDirectory directory)

◆ close()

void IsoArchive::close ( )
virtual

◆ diffCountSectors()

qint32 IsoArchive::diffCountSectors ( const QString &  path,
quint32  newSize 
) const

◆ error()

Archive::ArchiveError IsoArchive::error ( ) const

Returns the last error status.

See also
unsetError(), errorString()

◆ errorString()

QString IsoArchive::errorString ( ) const
inline

◆ extract()

bool IsoArchive::extract ( const QString &  path,
const QString &  destination,
quint32  maxSize = 0 
) const

◆ extractAll()

void IsoArchive::extractAll ( const QString &  destination) const

◆ extractDir()

bool IsoArchive::extractDir ( const QString &  path,
const QString &  destination 
) const

◆ file()

QByteArray IsoArchive::file ( const QString &  path,
quint32  maxSize = 0 
) const

◆ fileDevice()

QIODevice * IsoArchive::fileDevice ( const QString &  path) const

◆ fileName()

QString IsoArchive::fileName ( ) const
inline

◆ io()

const IsoArchiveIO& IsoArchive::io ( ) const
inline

◆ isOpen()

virtual bool IsoArchive::isOpen ( ) const
inlinevirtual

◆ modifiedFile()

QByteArray IsoArchive::modifiedFile ( const QString &  path,
quint32  maxSize = 0 
) const

◆ modifiedFileDevice()

QIODevice * IsoArchive::modifiedFileDevice ( const QString &  path) const

◆ open()

bool IsoArchive::open ( QIODevice::OpenMode  mode)
virtual

Reimplemented in IsoArchiveFF7.

◆ pack()

bool IsoArchive::pack ( IsoArchive destination,
ArchiveObserver control = nullptr,
IsoDirectory directory = nullptr 
)

◆ reorganizeModifiedFilesAfter()

bool IsoArchive::reorganizeModifiedFilesAfter ( QMap< quint32, const IsoFile * > &  writeToTheMain,
QList< const IsoFile * > &  writeToTheEnd 
)
protectedvirtual

Used to extend IsoArchive. Called in pack() after file reorganization.

Parameters
writeToTheMain
writeToTheEnd
Returns
false to cancel pack()

◆ rootDirectory()

IsoDirectory * IsoArchive::rootDirectory ( ) const

◆ setError()

void IsoArchive::setError ( Archive::ArchiveError  error,
const QString &  errorString = QString() 
)
protected

Sets the file's error type and text.

See also
error(), errorString()

◆ setFileName()

void IsoArchive::setFileName ( const QString &  fileName)
inline

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