Custom implementation of Assimp::IOSystem. More...
#include "pandaIOSystem.h"
Public Member Functions | |
PandaIOSystem (VirtualFileSystem *vfs=VirtualFileSystem::get_global_ptr()) | |
Initializes the object with the given VFS, or the global one if none was specified. More... | |
void | Close (Assimp::IOStream *file) |
Closes the indicated file stream. More... | |
bool | ComparePaths (const char *p1, const char *p2) const |
Returns true if the two paths point to the same file, false if not. More... | |
bool | Exists (const char *file) const |
Returns true if the file exists, duh. More... | |
char | getOsSeparator () const |
Returns the path separator for this operating system. More... | |
Assimp::IOStream * | Open (const char *file, const char *mode) |
Opens the indicated file. More... | |
Custom implementation of Assimp::IOSystem.
Definition at line 25 of file pandaIOSystem.h.
PandaIOSystem::PandaIOSystem | ( | VirtualFileSystem * | vfs = VirtualFileSystem::get_global_ptr() | ) |
Initializes the object with the given VFS, or the global one if none was specified.
Definition at line 22 of file pandaIOSystem.cxx.
void PandaIOSystem::Close | ( | Assimp::IOStream * | file | ) |
Closes the indicated file stream.
Definition at line 38 of file pandaIOSystem.cxx.
References VirtualFileSystem::close_read_file().
bool PandaIOSystem::ComparePaths | ( | const char * | p1, |
const char * | p2 | ||
) | const |
Returns true if the two paths point to the same file, false if not.
Definition at line 47 of file pandaIOSystem.cxx.
References Filename::from_os_specific(), and Filename::make_canonical().
bool PandaIOSystem::Exists | ( | const char * | file | ) | const |
Returns true if the file exists, duh.
Definition at line 29 of file pandaIOSystem.cxx.
References VirtualFileSystem::exists(), and Filename::from_os_specific().
char PandaIOSystem::getOsSeparator | ( | ) | const |
Returns the path separator for this operating system.
Definition at line 59 of file pandaIOSystem.cxx.
Assimp::IOStream * PandaIOSystem::Open | ( | const char * | file, |
const char * | mode | ||
) |
Opens the indicated file.
Definition at line 71 of file pandaIOSystem.cxx.
References Filename::from_os_specific(), and VirtualFileSystem::open_read_file().