Assimp
v3.1.1 (June 2014)
|
Default implementation of IOSystem using the standard C file functions. More...
Inherits Assimp::IOSystem.
Public Member Functions | |
void | Close (IOStream *pFile) |
Closes the given file and releases all resources associated with it. More... | |
bool | ComparePaths (const char *one, const char *second) const |
Compare two paths. More... | |
DefaultIOSystem () | |
Constructor. More... | |
bool | Exists (const char *pFile) const |
Tests for the existence of a file at the given path. More... | |
char | getOsSeparator () const |
Returns the directory separator. More... | |
IOStream * | Open (const char *pFile, const char *pMode="rb") |
Open a new file with a given path. More... | |
~DefaultIOSystem () | |
Destructor. More... | |
![]() | |
bool | ComparePaths (const std::string &one, const std::string &second) const |
For backward compatibility. More... | |
virtual const std::string & | CurrentDirectory () const |
Returns the top directory from the stack. More... | |
AI_FORCE_INLINE bool | Exists (const std::string &pFile) const |
For backward compatibility. More... | |
IOSystem () | |
Default constructor. 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... | |
Static Public Member Functions | |
static std::string | absolutePath (const std::string &path) |
get the path of a full filepath example: /tmp/archive.tar.gz -> /tmp/ More... | |
static std::string | completeBaseName (const std::string &path) |
get the complete base name of a full filepath example: /tmp/archive.tar.gz -> archive.tar More... | |
static std::string | fileName (const std::string &path) |
get the file name of a full filepath example: /tmp/archive.tar.gz -> archive.tar.gz More... | |
Default implementation of IOSystem using the standard C file functions.
DefaultIOSystem::DefaultIOSystem | ( | ) |
Constructor.
DefaultIOSystem::~DefaultIOSystem | ( | ) |
Destructor.
|
static |
get the path of a full filepath example: /tmp/archive.tar.gz -> /tmp/
Closes the given file and releases all resources associated with it.
Implements Assimp::IOSystem.
|
virtual |
Compare two paths.
Reimplemented from Assimp::IOSystem.
|
static |
get the complete base name of a full filepath example: /tmp/archive.tar.gz -> archive.tar
|
virtual |
Tests for the existence of a file at the given path.
Implements Assimp::IOSystem.
|
static |
get the file name of a full filepath example: /tmp/archive.tar.gz -> archive.tar.gz
|
virtual |
Returns the directory separator.
Implements Assimp::IOSystem.
|
virtual |
Open a new file with a given path.
Implements Assimp::IOSystem.