Panda3D
Public Member Functions

PandaIOSystem Class Reference

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

#include "pandaIOSystem.h"

List of all members.

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 27 of file pandaIOSystem.h.


Constructor & Destructor Documentation

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


Member Function Documentation

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

Closes the indicated file stream.

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

References Filename::from_os_specific().

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

Returns true if the file exists, duh.

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

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

Opens the indicated file.

Definition at line 86 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:
 All Classes Functions Variables Enumerations