71 Open(
const char *file,
const char *mode) {
76 if (stream ==
nullptr) {
82 nassert_raise(
"write mode not implemented");
Assimp::IOStream * Open(const char *file, const char *mode)
Opens the indicated file.
char getOsSeparator() const
Returns the path separator for this operating system.
A hierarchy of directories and files that appears to be one continuous file system,...
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,...
void Close(Assimp::IOStream *file)
Closes the indicated file stream.
bool ComparePaths(const char *p1, const char *p2) const
Returns true if the two paths point to the same file, false if not.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool make_canonical()
Converts this filename to a canonical name by replacing the directory part with the fully-qualified d...
static void close_read_file(std::istream *stream)
Closes a file opened by a previous call to open_read_file().
bool exists(const Filename &filename) const
Convenience function; returns true if the named file exists.
The name of a file, such as a texture file or an Egg file.
bool Exists(const char *file) const
Returns true if the file exists, duh.
PandaIOSystem(VirtualFileSystem *vfs=VirtualFileSystem::get_global_ptr())
Initializes the object with the given VFS, or the global one if none was specified.
static Filename from_os_specific(const std::string &os_specific, Type type=T_general)
This named constructor returns a Panda-style filename (that is, using forward slashes,...
Custom implementation of Assimp::IOStream.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.