ff7tk
0.02
Toolkit for making FF7 Tools
|
#include <Lgp.h>
Public Member Functions | |
LgpIterator (const Lgp &lgp) | |
bool | hasNext () const |
Returns true if there is at least one item ahead of the iterator, i.e. More... | |
bool | hasPrevious () const |
Returns true if there is at least one item behind the iterator, i.e. More... | |
void | next () |
Advances the iterator by one position. More... | |
void | previous () |
Moves the iterator back by one position. More... | |
void | toBack () |
Moves the iterator to the back of the container (after the last item). More... | |
void | toFront () |
Moves the iterator to the front of the container (before the first item). More... | |
QIODevice * | file () |
Returns the current file. More... | |
QIODevice * | modifiedFile () |
Returns the current modified file. More... | |
const QString & | fileName () const |
Returns the current file name (without the directory). More... | |
const QString & | fileDir () const |
Returns the current file directory (without the file name). More... | |
QString | filePath () const |
Returns the current full file path (dir + name). More... | |
Private Member Functions | |
LgpIterator (LgpToc *toc, QFile *lgp) | |
You must use Lgp::iterator() instead. More... | |
Private Attributes | |
QHashIterator< quint16, LgpHeaderEntry * > | it |
QFile * | _lgp |
Friends | |
class | Lgp |
|
private |
You must use Lgp::iterator() instead.
QIODevice * LgpIterator::file | ( | ) |
Returns the current file.
const QString & LgpIterator::fileDir | ( | ) | const |
Returns the current file directory (without the file name).
Definition at line 131 of file Lgp.cpp.
References it.
const QString & LgpIterator::fileName | ( | void | ) | const |
Returns the current file name (without the directory).
Definition at line 122 of file Lgp.cpp.
References it.
QString LgpIterator::filePath | ( | ) | const |
Returns the current full file path (dir + name).
Definition at line 140 of file Lgp.cpp.
References it.
Referenced by LgpToc::renameEntry().
bool LgpIterator::hasNext | ( | ) | const |
Returns true if there is at least one item ahead of the iterator, i.e.
the iterator is not at the back of the container; otherwise returns false.
Definition at line 45 of file Lgp.cpp.
References it.
bool LgpIterator::hasPrevious | ( | ) | const |
Returns true if there is at least one item behind the iterator, i.e.
the iterator is not at the front of the container; otherwise returns false.
Definition at line 55 of file Lgp.cpp.
References it.
QIODevice * LgpIterator::modifiedFile | ( | ) |
Returns the current modified file.
void LgpIterator::next | ( | ) |
Advances the iterator by one position.
Calling this function on an iterator located at the back of the container leads to undefined results.
Definition at line 66 of file Lgp.cpp.
References it.
void LgpIterator::previous | ( | ) |
Moves the iterator back by one position.
Calling this function on an iterator located at the front of the container leads to undefined results.
Definition at line 77 of file Lgp.cpp.
References it.
void LgpIterator::toBack | ( | ) |
Moves the iterator to the back of the container (after the last item).
Definition at line 86 of file Lgp.cpp.
References it.
void LgpIterator::toFront | ( | ) |
|
private |
Definition at line 52 of file Lgp.h.
Referenced by file(), and modifiedFile().
|
private |
Definition at line 51 of file Lgp.h.
Referenced by file(), fileDir(), fileName(), filePath(), hasNext(), hasPrevious(), modifiedFile(), next(), previous(), toBack(), and toFront().