Panda3D
Public Member Functions | List of all members
PandaIOSystem Class Reference

Custom implementation of Assimp::IOSystem. More...

#include "pandaIOSystem.h"

Inheritance diagram for PandaIOSystem:

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...
 

Detailed Description

Custom implementation of Assimp::IOSystem.

Definition at line 25 of file pandaIOSystem.h.

Constructor & Destructor Documentation

◆ PandaIOSystem()

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.

Member Function Documentation

◆ Close()

void PandaIOSystem::Close ( Assimp::IOStream *  file)

Closes the indicated file stream.

Definition at line 38 of file pandaIOSystem.cxx.

References VirtualFileSystem::close_read_file().

◆ ComparePaths()

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().

◆ Exists()

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().

◆ getOsSeparator()

char PandaIOSystem::getOsSeparator ( ) const

Returns the path separator for this operating system.

Definition at line 59 of file pandaIOSystem.cxx.

◆ Open()

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().


The documentation for this class was generated from the following files: