|
static bool | extractIndexFromName (const Std::string &name, uint32 &index) |
|
◆ exists() [1/2]
bool Ultima::Ultima8::NamedArchiveFile::exists |
( |
uint32 |
index | ) |
|
|
inlineoverridevirtual |
Check if numbered object exists If the Flex has named objects, only objects with numerical names will be returned (the filename without the extension must be an integer)
- Parameters
-
index | index of object to check for |
Implements Ultima::Ultima8::ArchiveFile.
◆ exists() [2/2]
bool Ultima::Ultima8::NamedArchiveFile::exists |
( |
const Std::string & |
name | ) |
|
|
overridepure virtual |
◆ getObject() [1/2]
uint8* Ultima::Ultima8::NamedArchiveFile::getObject |
( |
uint32 |
index, |
|
|
uint32 * |
size = 0 |
|
) |
| |
|
inlineoverridevirtual |
Get object from file; returns NULL if index is invalid. Must delete the returned buffer afterwards. See also exists(uint32 index)
- Parameters
-
index | index of object to fetch |
size | if non-NULL, size of object is stored in *size |
Implements Ultima::Ultima8::ArchiveFile.
◆ getObject() [2/2]
uint8* Ultima::Ultima8::NamedArchiveFile::getObject |
( |
const Std::string & |
name, |
|
|
uint32 * |
size = 0 |
|
) |
| |
|
overridepure virtual |
Get named object from file; returns NULL if name is invalid. Must delete the returned buffer afterwards. See also exists(Std::string name)
- Parameters
-
name | name of object to fetch |
size | if non-NULL, size of object is stored in *size |
Implements Ultima::Ultima8::ArchiveFile.
Implemented in Ultima::Ultima8::U8SaveFile.
◆ getSize() [1/2]
uint32 Ultima::Ultima8::NamedArchiveFile::getSize |
( |
uint32 |
index | ) |
const |
|
inlineoverridevirtual |
◆ getSize() [2/2]
uint32 Ultima::Ultima8::NamedArchiveFile::getSize |
( |
const Std::string & |
name | ) |
const |
|
overridepure virtual |
◆ getCount()
uint32 Ultima::Ultima8::NamedArchiveFile::getCount |
( |
| ) |
const |
|
overridepure virtual |
◆ getIndexCount()
uint32 Ultima::Ultima8::NamedArchiveFile::getIndexCount |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the highest index in the file Guaranteed to be sufficiently large for a vector that needs to store the indexed entries of this file
Implements Ultima::Ultima8::ArchiveFile.
The documentation for this class was generated from the following file: