Inherits Assimp::IOSystem.
◆ TestIOSystem()
TestIOSystem::TestIOSystem |
( |
| ) |
|
|
inline |
◆ ~TestIOSystem()
virtual TestIOSystem::~TestIOSystem |
( |
| ) |
|
|
inlinevirtual |
◆ Close()
virtual void TestIOSystem::Close |
( |
IOStream * |
pFile | ) |
|
|
inlinevirtual |
Closes the given file and releases all resources associated with it.
- Parameters
-
pFile | The file instance previously created by Open(). |
Implements Assimp::IOSystem.
◆ Exists()
virtual bool TestIOSystem::Exists |
( |
const char * |
pFile | ) |
const |
|
inlinevirtual |
Tests for the existence of a file at the given path.
- Parameters
-
- Returns
- true if there is a file with this path, else false.
Implements Assimp::IOSystem.
◆ getOsSeparator()
virtual char TestIOSystem::getOsSeparator |
( |
| ) |
const |
|
inlinevirtual |
Returns the system specific directory separator.
- Returns
- System specific directory separator
Implements Assimp::IOSystem.
◆ Open()
virtual IOStream* TestIOSystem::Open |
( |
const char * |
pFile, |
|
|
const char * |
pMode = "rb" |
|
) |
| |
|
inlinevirtual |
Open a new file with a given path.
When the access to the file is finished, call Close() to release all associated resources (or the virtual dtor of the IOStream).
- Parameters
-
pFile | Path to the file |
pMode | Desired file I/O mode. Required are: "wb", "w", "wt", "rb", "r", "rt". |
- Returns
- New IOStream interface allowing the lib to access the underlying file.
- Note
- When implementing this class to provide custom IO handling, you probably have to supply an own implementation of IOStream as well.
Implements Assimp::IOSystem.
The documentation for this class was generated from the following file: