Go to the documentation of this file.
49 #ifndef AI_ZIPARCHIVEIOSYSTEM_H_INC
50 #define AI_ZIPARCHIVEIOSYSTEM_H_INC
53 # pragma GCC system_header
67 bool Exists(
const char* pFilename)
const override;
69 IOStream*
Open(
const char* pFilename,
const char* pMode =
"rb")
override;
84 static bool isZipArchive(
IOSystem* pIOHandler,
const char *pFilename);
85 static bool isZipArchive(
IOSystem* pIOHandler,
const std::string& rFilename);
89 Implement *pImpl =
nullptr;
94 #endif // AI_ZIPARCHIVEIOSYSTEM_H_INC
File system wrapper for C++. Inherit this class to supply custom file handling logic to the Import li...
void Close(IOStream *pFile) override
Closes the given file and releases all resources associated with it.
void getFileList(std::vector< std::string > &rFileList) const
bool Exists(const char *pFilename) const override
Tests for the existence of a file at the given path.
Definition: ZipArchiveIOSystem.h:61
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.
char getOsSeparator() const override
Returns the system specific directory separator.
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:93
void getFileListExtension(std::vector< std::string > &rFileList, const std::string &extension) const
File I/O wrappers for C++.
Definition: ai_assert.h:50
bool isOpen() const
The file was opened and is a ZIP.
CPP-API: Class to handle file I/O for C++.
Definition: IOStream.hpp:75