IRecord class
Represents a file in a Database; records are identified by a ResourceKey (which specifies group, instance and type IDs), and have an underlying IO::
Base classes
- class ThreadedObject
Derived classes
- class FakeRecord
- class PFRecordBase
- Base implementation for records in a .packagefile (DatabasePackedFile).
Public functions
- auto GetKey() -> const ResourceKey& pure virtual
- Gets the ResourceKey name that identifies this record.
- auto SetKey(const ResourceKey& key) -> void 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 GetDatabase() -> Database* pure virtual
- Returns the database that this record belongs to.
- auto RecordOpen() -> bool pure virtual
- Opens this record, allowing its data to be used.
- auto RecordClose() -> bool pure virtual
- Closes this record, forbidding any use of its data.
Function documentation
              void Resource::
            Sets the ResourceKey name that identifies this record.
| Parameters | |
|---|---|
| key | |
              IO::
            Returns the IStream used to access this record data.
| Returns | 
|---|