class
FakeRecord
Base classes
- class IRecord
- Represents a file in a Database; records are identified by a ResourceKey (which specifies group, instance and type IDs), and have an underlying IO::
IStream that is used to read/write data.
Constructors, destructors, conversion operators
-
FakeRecord(Database* database,
IO::
IStream* stream, const ResourceKey& key, bool closeStreamOnClose, bool deleteStreamOnClose)
Public functions
- auto GetKey() -> const ResourceKey& override
- Gets the ResourceKey name that identifies this record.
- auto SetKey(const ResourceKey& key) -> void override
- Sets the ResourceKey name that identifies this record.
-
auto GetStream() -> IO::
IStream* override - Returns the IStream used to access this record data.
- auto GetDatabase() -> Database* override
- Returns the database that this record belongs to.
- auto RecordOpen() -> bool override
- Opens this record, allowing its data to be used.
- auto RecordClose() -> bool override
- Closes this record, forbidding any use of its data.
Public variables
Function documentation
void Resource:: FakeRecord:: SetKey(const ResourceKey& key) override
Sets the ResourceKey name that identifies this record.
Parameters | |
---|---|
key |
IO:: IStream* Resource:: FakeRecord:: GetStream() override
Returns the IStream used to access this record data.
Returns |
---|