29Exists(
const char *file)
const {
30 Filename fn = Filename::from_os_specific(file);
38Close(Assimp::IOStream *file) {
48 Filename fn1 = Filename::from_os_specific(p1);
49 Filename fn2 = Filename::from_os_specific(p2);
71Open(
const char *file,
const char *mode) {
72 Filename fn = Filename::from_os_specific(file);
76 if (stream ==
nullptr) {
82 nassert_raise(
"write mode not implemented");
The name of a file, such as a texture file or an Egg file.
bool make_canonical()
Converts this filename to a canonical name by replacing the directory part with the fully-qualified d...
Custom implementation of Assimp::IOStream.
bool Exists(const char *file) const
Returns true if the file exists, duh.
char getOsSeparator() const
Returns the path separator for this operating system.
bool ComparePaths(const char *p1, const char *p2) const
Returns true if the two paths point to the same file, false if not.
Assimp::IOStream * Open(const char *file, const char *mode)
Opens the indicated file.
void Close(Assimp::IOStream *file)
Closes the indicated file stream.
PandaIOSystem(VirtualFileSystem *vfs=VirtualFileSystem::get_global_ptr())
Initializes the object with the given VFS, or the global one if none was specified.
A hierarchy of directories and files that appears to be one continuous file system,...
bool exists(const Filename &filename) const
Convenience function; returns true if the named file exists in the virtual file system hierarchy.
static void close_read_file(std::istream *stream)
Closes a file opened by a previous call to open_read_file().
std::istream * open_read_file(const Filename &filename, bool auto_unwrap) const
Convenience function; returns a newly allocated istream if the file exists and can be read,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.