ff7tk  0.02
Toolkit for making FF7 Tools
IsoFileOrDirectory Class Referenceabstract

#include <IsoArchive.h>

Inheritance diagram for IsoFileOrDirectory:
IsoDirectory IsoFile

Public Member Functions

virtual ~IsoFileOrDirectory ()
 
const QString & name () const
 
quint32 location () const
 
quint32 locationAfter () const
 
quint32 size () const
 
quint32 sectorCount () const
 
quint32 newLocation () const
 
quint32 newSize () const
 
quint32 newSectorCount () const
 
void setName (const QString &name)
 
void setLocation (quint32 location)
 
virtual bool isDirectory () const =0
 
bool isFile () const
 
virtual bool isModified () const
 
virtual void applyModifications ()
 
bool isSpecial () const
 
void setPaddingAfter (quint8 after)
 
quint8 paddingAfter () const
 

Public Attributes

qint64 structPosition
 

Protected Member Functions

 IsoFileOrDirectory (const QString &name, quint32 location, quint32 size, qint64 structPosition)
 

Protected Attributes

QString _name
 
quint32 _location
 
quint32 _size
 
quint32 _newLocation
 
quint32 _newSize
 
quint8 _paddingAfter
 

Detailed Description

Definition at line 139 of file IsoArchive.h.

Constructor & Destructor Documentation

IsoFileOrDirectory::~IsoFileOrDirectory ( )
virtual

Definition at line 26 of file IsoArchive.cpp.

IsoFileOrDirectory::IsoFileOrDirectory ( const QString &  name,
quint32  location,
quint32  size,
qint64  structPosition 
)
protected

Definition at line 20 of file IsoArchive.cpp.

Member Function Documentation

void IsoFileOrDirectory::applyModifications ( )
virtual

Reimplemented in IsoFile.

Definition at line 90 of file IsoArchive.cpp.

References _location, _newLocation, _newSize, and _size.

Referenced by IsoFile::applyModifications(), and IsoArchive::applyModifications().

bool IsoFileOrDirectory::isFile ( ) const

Definition at line 80 of file IsoArchive.cpp.

References isDirectory().

Referenced by IsoDirectory::directory(), and IsoDirectory::files().

bool IsoFileOrDirectory::isModified ( ) const
virtual

Reimplemented in IsoFile.

Definition at line 85 of file IsoArchive.cpp.

References _location, _newLocation, _newSize, and _size.

Referenced by IsoArchive::applyModifications(), IsoFile::isModified(), and IsoArchive::repairLocationSectors().

bool IsoFileOrDirectory::isSpecial ( ) const
quint32 IsoFileOrDirectory::locationAfter ( ) const

Definition at line 40 of file IsoArchive.cpp.

References location(), and sectorCount().

Referenced by IsoArchive::getIntegritySetPaddingAfter(), and IsoArchive::pack().

quint32 IsoFileOrDirectory::newLocation ( ) const
quint32 IsoFileOrDirectory::newSectorCount ( ) const

Definition at line 65 of file IsoArchive.cpp.

References _newSize, and SECTOR_SIZE_DATA.

Referenced by IsoArchive::pack().

quint32 IsoFileOrDirectory::newSize ( ) const

Definition at line 60 of file IsoArchive.cpp.

References _newSize.

Referenced by IsoArchive::repairLocationSectors().

quint8 IsoFileOrDirectory::paddingAfter ( ) const
quint32 IsoFileOrDirectory::sectorCount ( ) const

Definition at line 50 of file IsoArchive.cpp.

References _size, and SECTOR_SIZE_DATA.

Referenced by IsoArchive::getIntegritySetPaddingAfter(), locationAfter(), and IsoArchive::pack().

void IsoFileOrDirectory::setLocation ( quint32  location)

Definition at line 75 of file IsoArchive.cpp.

References _newLocation, and location().

Referenced by IsoArchive::pack().

void IsoFileOrDirectory::setName ( const QString &  name)

Definition at line 70 of file IsoArchive.cpp.

References _name, and name().

void IsoFileOrDirectory::setPaddingAfter ( quint8  after)

Definition at line 101 of file IsoArchive.cpp.

References _paddingAfter.

Referenced by IsoArchive::getIntegritySetPaddingAfter(), and IsoArchive::pack().

quint32 IsoFileOrDirectory::size ( ) const

Member Data Documentation

quint32 IsoFileOrDirectory::_location
protected

Definition at line 165 of file IsoArchive.h.

Referenced by applyModifications(), isModified(), and location().

QString IsoFileOrDirectory::_name
protected

Definition at line 164 of file IsoArchive.h.

Referenced by isSpecial(), name(), and setName().

quint32 IsoFileOrDirectory::_newLocation
protected

Definition at line 166 of file IsoArchive.h.

Referenced by applyModifications(), isModified(), newLocation(), and setLocation().

quint32 IsoFileOrDirectory::_newSize
protected
quint8 IsoFileOrDirectory::_paddingAfter
protected

Definition at line 167 of file IsoArchive.h.

Referenced by paddingAfter(), and setPaddingAfter().

quint32 IsoFileOrDirectory::_size
protected

Definition at line 165 of file IsoArchive.h.

Referenced by applyModifications(), isModified(), sectorCount(), and size().

qint64 IsoFileOrDirectory::structPosition

Definition at line 158 of file IsoArchive.h.

Referenced by IsoArchive::repairLocationSectors().


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