Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Dummy IO system to read from a memory buffer. More...
#include <MemoryIOWrapper.h>
Inherits Assimp::IOSystem.
Public Member Functions | |
bool | ChangeDirectory (const std::string &path) override |
Will change the current directory to the given path. More... | |
void | Close (IOStream *pFile) override |
Closes the given file and releases all resources associated with it. More... | |
bool | ComparePaths (const char *one, const char *second) const override |
Compare two paths. More... | |
bool | CreateDirectory (const std::string &path) override |
CReates an new directory at the given path. More... | |
const std::string & | CurrentDirectory () const override |
Returns the top directory from the stack. More... | |
bool | DeleteFile (const std::string &file) override |
Will delete the given file. More... | |
bool | Exists (const char *pFile) const override |
Tests for the existence of a file at the given path. More... | |
char | getOsSeparator () const override |
Returns the directory separator. More... | |
MemoryIOSystem (const uint8_t *buff, size_t len, IOSystem *io) | |
Constructor. More... | |
IOStream * | Open (const char *pFile, const char *pMode="rb") override |
Open a new file with a given path. More... | |
bool | PopDirectory () override |
Pops the top directory from the stack. More... | |
bool | PushDirectory (const std::string &path) override |
Pushes a new directory onto the directory stack. More... | |
size_t | StackSize () const override |
Returns the number of directories stored on the stack. More... | |
~MemoryIOSystem () | |
Destructor. More... | |
![]() | |
virtual bool | ChangeDirectory (const std::string &path) |
Will change the current directory to the given path. More... | |
virtual void | Close (IOStream *pFile)=0 |
Closes the given file and releases all resources associated with it. More... | |
virtual bool | ComparePaths (const char *one, const char *second) const |
Compares two paths and check whether the point to identical files. More... | |
bool | ComparePaths (const std::string &one, const std::string &second) const |
For backward compatibility. More... | |
virtual bool | CreateDirectory (const std::string &path) |
CReates an new directory at the given path. More... | |
virtual const std::string & | CurrentDirectory () const |
Returns the top directory from the stack. More... | |
virtual bool | DeleteFile (const std::string &file) |
Will delete the given file. More... | |
virtual bool | Exists (const char *pFile) const =0 |
Tests for the existence of a file at the given path. More... | |
AI_FORCE_INLINE bool | Exists (const std::string &pFile) const |
For backward compatibility. More... | |
virtual char | getOsSeparator () const =0 |
Returns the system specific directory separator. More... | |
IOSystem () AI_NO_EXCEPT | |
Default constructor. More... | |
virtual IOStream * | Open (const char *pFile, const char *pMode="rb")=0 |
Open a new file with a given path. More... | |
IOStream * | Open (const std::string &pFile, const std::string &pMode=std::string("rb")) |
For backward compatibility. More... | |
virtual bool | PopDirectory () |
Pops the top directory from the stack. More... | |
virtual bool | PushDirectory (const std::string &path) |
Pushes a new directory onto the directory stack. More... | |
virtual size_t | StackSize () const |
Returns the number of directories stored on the stack. More... | |
virtual | ~IOSystem () |
Virtual destructor. More... | |
Dummy IO system to read from a memory buffer.
|
inline |
Constructor.
|
inline |
Destructor.
|
inlineoverridevirtual |
Will change the current directory to the given path.
path | [in] The path to change to. |
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Closes the given file and releases all resources associated with it.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Compare two paths.
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
CReates an new directory at the given path.
path | [in] The path to create. |
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Returns the top directory from the stack.
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Will delete the given file.
file | [in] The filename |
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Tests for the existence of a file at the given path.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Returns the directory separator.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Open a new file with a given path.
Implements Assimp::IOSystem.
|
inlineoverridevirtual |
Pops the top directory from the stack.
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Pushes a new directory onto the directory stack.
path | Path to push onto the stack. |
Reimplemented from Assimp::IOSystem.
|
inlineoverridevirtual |
Returns the number of directories stored on the stack.
Reimplemented from Assimp::IOSystem.