Resource::IPFRecord class

This interface defines the methods required to access the data of a file contained in a DBPF.

Base classes

class ThreadedObject

Derived classes

class PFRecordRead
This class is used to read the data of a file contained inside a DBPF.
class PFRecordWrite
This class is used to write data to a file contained inside a DBPF.

Constructors, destructors, conversion operators

IPFRecord(uint32_t nType, const ResourceKey& name, DatabasePackedFile* pParentDBPF, int nFileAccess)

Public functions

auto GetType() const -> uint32_t
auto GetName() -> ResourceKey& pure virtual
Gets the ResourceKey name that identifies this record.
void SetName(const ResourceKey& name) pure virtual
Sets the ResourceKey name that identifies this record.
auto GetStream() -> IO::IStream* pure virtual
Returns the IStream used to access this record data.
auto GetParentDBPF() const -> DatabasePackedFile* pure virtual
Returns the DatabasePackedFile that this record belongs to.
auto Open() -> bool pure virtual
auto Close() -> bool pure virtual
auto func28h() -> int pure virtual

Protected variables

uint32_t mnType
ResourceKey mNameKey
DatabasePackedFile* mpParentDBPF
int mnFileAccess