Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
#include <ZipArchiveIOSystem.h>
Inherits Assimp::IOSystem.
Public Member Functions | |
void | Close (IOStream *pFile) override |
Closes the given file and releases all resources associated with it. | |
bool | Exists (const char *pFilename) const override |
Tests for the existence of a file at the given path. | |
void | getFileList (std::vector< std::string > &rFileList) const |
Get the list of all files with their simplified paths Intended for use within Assimp library boundaries. | |
void | getFileListExtension (std::vector< std::string > &rFileList, const std::string &extension) const |
Get the list of all files with extension (must be lowercase) Intended for use within Assimp library boundaries. | |
char | getOsSeparator () const override |
Returns the system specific directory separator. | |
bool | isOpen () const |
The file was opened and is a ZIP. | |
IOStream * | Open (const char *pFilename, const char *pMode="rb") override |
Open a new file with a given path. | |
ZipArchiveIOSystem (IOSystem *pIOHandler, const char *pFilename, const char *pMode="r") | |
Open a Zip using the proffered IOSystem. | |
ZipArchiveIOSystem (IOSystem *pIOHandler, const std::string &rFilename, const char *pMode="r") | |
virtual | ~ZipArchiveIOSystem () override |
![]() | |
virtual bool | ChangeDirectory (const std::string &path) |
Will change the current directory to the given path. | |
virtual bool | ComparePaths (const char *one, const char *second) const |
Compares two paths and check whether the point to identical files. | |
bool | ComparePaths (const std::string &one, const std::string &second) const |
For backward compatibility. | |
virtual bool | CreateDirectory (const std::string &path) |
CReates an new directory at the given path. | |
virtual const std::string & | CurrentDirectory () const |
Returns the top directory from the stack. | |
virtual bool | DeleteFile (const std::string &file) |
Will delete the given file. | |
AI_FORCE_INLINE bool | Exists (const std::string &pFile) const |
For backward compatibility. | |
IOSystem () AI_NO_EXCEPT=default | |
Default constructor. | |
IOStream * | Open (const std::string &pFile, const std::string &pMode=std::string("rb")) |
For backward compatibility. | |
virtual bool | PopDirectory () |
Pops the top directory from the stack. | |
virtual bool | PushDirectory (const std::string &path) |
Pushes a new directory onto the directory stack. | |
virtual size_t | StackSize () const |
Returns the number of directories stored on the stack. | |
virtual | ~IOSystem ()=default |
Virtual destructor. | |
Static Public Member Functions | |
static bool | isZipArchive (IOSystem *pIOHandler, const char *pFilename) |
static bool | isZipArchive (IOSystem *pIOHandler, const std::string &rFilename) |
Assimp::ZipArchiveIOSystem::ZipArchiveIOSystem | ( | IOSystem * | pIOHandler, |
const char * | pFilename, | ||
const char * | pMode = "r" |
||
) |
Open a Zip using the proffered IOSystem.
Assimp::ZipArchiveIOSystem::ZipArchiveIOSystem | ( | IOSystem * | pIOHandler, |
const std::string & | rFilename, | ||
const char * | pMode = "r" |
||
) |
|
overridevirtual |
Closes the given file and releases all resources associated with it.
pFile | The file instance previously created by Open(). |
Implements Assimp::IOSystem.
Tests for the existence of a file at the given path.
pFile | Path to the file |
Implements Assimp::IOSystem.
void Assimp::ZipArchiveIOSystem::getFileList | ( | std::vector< std::string > & | rFileList | ) | const |
Get the list of all files with their simplified paths Intended for use within Assimp library boundaries.
void Assimp::ZipArchiveIOSystem::getFileListExtension | ( | std::vector< std::string > & | rFileList, |
const std::string & | extension | ||
) | const |
Get the list of all files with extension (must be lowercase) Intended for use within Assimp library boundaries.
|
overridevirtual |
Returns the system specific directory separator.
Implements Assimp::IOSystem.
bool Assimp::ZipArchiveIOSystem::isOpen | ( | ) | const |
The file was opened and is a ZIP.
|
static |
|
static |
|
overridevirtual |
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).
pFile | Path to the file |
pMode | Desired file I/O mode. Required are: "wb", "w", "wt", "rb", "r", "rt". |
Implements Assimp::IOSystem.