Inherits Assimp::IOSystem.
§ CIOSystemWrapper()
Assimp::CIOSystemWrapper::CIOSystemWrapper |
( |
aiFileIO * |
pFile | ) |
|
|
inlineexplicit |
§ Close()
void Assimp::CIOSystemWrapper::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()
bool Assimp::CIOSystemWrapper::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()
char Assimp::CIOSystemWrapper::getOsSeparator |
( |
| ) |
const |
|
inlinevirtual |
Returns the system specific directory separator.
- Returns
- System specific directory separator
Implements Assimp::IOSystem.
§ Open()
IOStream* Assimp::CIOSystemWrapper::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: