Panda3D
Loading...
Searching...
No Matches
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.
 
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.
 
bool Exists (const char *file) const
 Returns true if the file exists, duh.
 
char getOsSeparator () const
 Returns the path separator for this operating system.
 
Assimp::IOStream * Open (const char *file, const char *mode)
 Opens the indicated file.
 

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 21 of file pandaIOSystem.cxx.

◆ ~PandaIOSystem()

virtual PandaIOSystem::~PandaIOSystem ( )
inlinevirtual

Definition at line 28 of file pandaIOSystem.h.

Member Function Documentation

◆ Close()

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

Closes the indicated file stream.

Definition at line 37 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 46 of file pandaIOSystem.cxx.

References Filename::make_canonical().

◆ Exists()

bool PandaIOSystem::Exists ( const char * file) const

Returns true if the file exists, duh.

Definition at line 28 of file pandaIOSystem.cxx.

References VirtualFileSystem::exists().

◆ getOsSeparator()

char PandaIOSystem::getOsSeparator ( ) const

Returns the path separator for this operating system.

Definition at line 58 of file pandaIOSystem.cxx.

◆ Open()

Assimp::IOStream * PandaIOSystem::Open ( const char * file,
const char * mode )

Opens the indicated file.

Definition at line 70 of file pandaIOSystem.cxx.

References VirtualFileSystem::open_read_file().


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