ff7tk  0.02
Toolkit for making FF7 Tools
LgpToc Class Reference

#include <Lgp_p.h>

Public Member Functions

 LgpToc ()
 
 LgpToc (const LgpToc &other)
 
virtual ~LgpToc ()
 
bool addEntry (LgpHeaderEntry *entry)
 
LgpHeaderEntryentry (const QString &filePath) const
 
QList< LgpHeaderEntry * > entries (quint16 id) const
 
const QMultiHash< quint16, LgpHeaderEntry * > & table () const
 
bool hasEntries (quint16 id) const
 
bool removeEntry (const QString &filePath)
 
bool renameEntry (const QString &filePath, const QString &newFilePath)
 
bool contains (const QString &filePath) const
 
void clear ()
 
bool isEmpty () const
 
int size () const
 
QList< const LgpHeaderEntry * > filesSortedByPosition () const
 
LgpTocoperator= (const LgpToc &other)
 

Static Public Member Functions

static bool isNameValid (const QString &filePath)
 

Private Member Functions

LgpHeaderEntryentry (const QString &filePath, quint16 id) const
 

Static Private Member Functions

static qint32 lookupValue (const QString &filePath)
 
static quint8 lookupValue (const QChar &qc)
 

Private Attributes

QMultiHash< quint16, LgpHeaderEntry * > _header
 

Detailed Description

Definition at line 117 of file Lgp_p.h.

Constructor & Destructor Documentation

LgpToc::LgpToc ( )

Definition at line 218 of file Lgp_p.cpp.

LgpToc::LgpToc ( const LgpToc other)

Definition at line 222 of file Lgp_p.cpp.

References table().

LgpToc::~LgpToc ( )
virtual

Definition at line 229 of file Lgp_p.cpp.

References LgpIO::_header.

Member Function Documentation

bool LgpToc::addEntry ( LgpHeaderEntry entry)

Definition at line 234 of file Lgp_p.cpp.

References LgpIO::_header, and LgpHeaderEntry::fileName().

Referenced by Lgp::addFile(), Lgp::openHeader(), and Lgp::pack().

void LgpToc::clear ( )

Definition at line 357 of file Lgp_p.cpp.

References LgpIO::_header.

Referenced by Lgp::clear(), and Lgp::openHeader().

bool LgpToc::contains ( const QString &  filePath) const

Definition at line 352 of file Lgp_p.cpp.

QList< LgpHeaderEntry * > LgpToc::entries ( quint16  id) const

Definition at line 260 of file Lgp_p.cpp.

References LgpIO::_header.

Referenced by Lgp::pack().

LgpHeaderEntry * LgpToc::entry ( const QString &  filePath) const

Definition at line 250 of file Lgp_p.cpp.

Referenced by Lgp::headerEntry().

LgpHeaderEntry * LgpToc::entry ( const QString &  filePath,
quint16  id 
) const
private

Definition at line 275 of file Lgp_p.cpp.

References LgpHeaderEntry::filePath().

QList< const LgpHeaderEntry * > LgpToc::filesSortedByPosition ( ) const

Definition at line 374 of file Lgp_p.cpp.

References LgpIO::_header, and LgpHeaderEntry::filePosition().

Referenced by Lgp::fileList(), and Lgp::pack().

bool LgpToc::hasEntries ( quint16  id) const

Definition at line 270 of file Lgp_p.cpp.

References LgpIO::_header.

bool LgpToc::isEmpty ( ) const

Definition at line 364 of file Lgp_p.cpp.

References LgpIO::_header.

Referenced by Lgp::fileList().

bool LgpToc::isNameValid ( const QString &  filePath)
static

Definition at line 305 of file Lgp_p.cpp.

Referenced by Lgp::isNameValid().

qint32 LgpToc::lookupValue ( const QString &  filePath)
staticprivate

Definition at line 397 of file Lgp_p.cpp.

References LOOKUP_VALUE_MAX.

quint8 LgpToc::lookupValue ( const QChar &  qc)
staticprivate

Definition at line 426 of file Lgp_p.cpp.

LgpToc & LgpToc::operator= ( const LgpToc other)

Definition at line 385 of file Lgp_p.cpp.

References table().

bool LgpToc::removeEntry ( const QString &  filePath)

Definition at line 286 of file Lgp_p.cpp.

References LgpIO::_header.

Referenced by Lgp::removeFile().

bool LgpToc::renameEntry ( const QString &  filePath,
const QString &  newFilePath 
)

Definition at line 310 of file Lgp_p.cpp.

References LgpIO::_header, LgpIterator::filePath(), and LgpHeaderEntry::setFilePath().

Referenced by Lgp::renameFile().

int LgpToc::size ( ) const

Definition at line 369 of file Lgp_p.cpp.

References LgpIO::_header.

Referenced by Lgp::fileCount(), and Lgp::pack().

const QMultiHash< quint16, LgpHeaderEntry * > & LgpToc::table ( ) const

Definition at line 265 of file Lgp_p.cpp.

References LgpIO::_header.

Referenced by LgpToc(), and operator=().

Member Data Documentation

QMultiHash<quint16, LgpHeaderEntry *> LgpToc::_header
private

Definition at line 141 of file Lgp_p.h.


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