#include <virtualFileMountSystem.h>
Inheritance diagram for VirtualFileMountSystem:
Public Member Functions | |
VirtualFileMountSystem (VirtualFileSystem *file_system, const Filename &physical_filename, const Filename &mount_point, int mount_flags) | |
virtual bool | has_file (const Filename &file) const |
Returns true if the indicated file exists within the mount system. | |
virtual bool | is_directory (const Filename &file) const |
Returns true if the indicated file exists within the mount system and is a directory. | |
virtual bool | is_regular_file (const Filename &file) const |
Returns true if the indicated file exists within the mount system and is a regular file. | |
virtual istream * | open_read_file (const Filename &file) const |
Opens the file for reading, if it exists. | |
virtual bool | scan_directory (vector_string &contents, const Filename &dir) const |
Fills the given vector up with the list of filenames that are local to this directory, if the filename is a directory. | |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
VirtualFileSystem * | get_file_system () const |
Returns the file system this mount object is attached to. | |
const Filename & | get_physical_filename () const |
Returns the name of the source file on the OS filesystem of the directory or file that is mounted. | |
const Filename & | get_mount_point () const |
Returns the name of the directory within the virtual file system that this mount object is attached to. | |
int | get_mount_flags () const |
Returns the set of flags passed by the user to the VirtualFileSystem::mount() command. | |
virtual void | output (ostream &out) const |
virtual void | write (ostream &out) const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Protected Attributes | |
VirtualFileSystem * | _file_system |
Filename | _physical_filename |
Filename | _mount_point |
int | _mount_flags |
Static Private Attributes | |
TypeHandle | _type_handle |
Definition at line 38 of file virtualFileMountSystem.h.
|
Definition at line 32 of file virtualFileMountSystem.I. |
|
Reimplemented from VirtualFileMount. Definition at line 59 of file virtualFileMountSystem.h. |
|
Reimplemented from VirtualFileMount. Definition at line 60 of file virtualFileMountSystem.h. |
|
Returns the file system this mount object is attached to.
Definition at line 54 of file virtualFileMount.I. References VirtualFileMount::_physical_filename, and INLINE. |
|
Returns the set of flags passed by the user to the VirtualFileSystem::mount() command.
Definition at line 102 of file virtualFileMount.I. |
|
Returns the name of the directory within the virtual file system that this mount object is attached to. This directory name will end with a slash. Definition at line 87 of file virtualFileMount.I. Referenced by VirtualFileSimple::get_file_system(), and VirtualFileMount::output(). |
|
Returns the name of the source file on the OS filesystem of the directory or file that is mounted.
Definition at line 70 of file virtualFileMount.I. Referenced by VirtualFileMount::output(), and VirtualFileMount::~VirtualFileMount(). |
|
Reimplemented from VirtualFileMount. Definition at line 56 of file virtualFileMountSystem.h. References VirtualFileMount::init_type(), and register_type(). |
|
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). Definition at line 71 of file typedObject.I. References TypeHandle::get_name(), TypedObject::get_type(), and INLINE. |
|
Returns true if the indicated file exists within the mount system.
Implements VirtualFileMount. Definition at line 38 of file virtualFileMountSystem.cxx. References VirtualFileMount::_physical_filename, and Filename::is_directory(). |
|
This function is declared non-inline to work around a compiler bug in g++ 2.96. Making it inline seems to cause problems in the optimizer. Reimplemented from VirtualFileMount. Definition at line 63 of file virtualFileMountSystem.h. |
|
Returns true if the indicated file exists within the mount system and is a directory.
Implements VirtualFileMount. Definition at line 54 of file virtualFileMountSystem.cxx. References VirtualFileMount::_physical_filename, and Filename::is_regular_file(). |
|
Returns true if the current object is the indicated type exactly.
Definition at line 101 of file typedObject.I. Referenced by PT(), and CollisionNode::xform(). |
|
|
Returns true if the indicated file exists within the mount system and is a regular file.
Implements VirtualFileMount. Definition at line 70 of file virtualFileMountSystem.cxx. References NULL. |
|
Opens the file for reading, if it exists. Returns a newly allocated istream on success (which you should eventually delete when you are done reading). Returns NULL on failure. Implements VirtualFileMount. Definition at line 90 of file virtualFileMountSystem.cxx. References VirtualFileMount::_physical_filename, and Filename::scan_directory(). |
|
Definition at line 48 of file virtualFileMount.cxx. References VirtualFileMount::get_mount_point(), and VirtualFileMount::get_physical_filename(). |
|
Fills the given vector up with the list of filenames that are local to this directory, if the filename is a directory. Returns true if successful, or false if the file is not a directory or cannot be read. Implements VirtualFileMount. Definition at line 118 of file virtualFileMountSystem.cxx. |
|
Definition at line 61 of file virtualFileMount.cxx. |
|
Definition at line 70 of file virtualFileMount.h. |
|
Definition at line 73 of file virtualFileMount.h. |
|
Definition at line 72 of file virtualFileMount.h. |
|
Definition at line 71 of file virtualFileMount.h. Referenced by VirtualFileMount::get_file_system(), has_file(), is_directory(), and open_read_file(). |
|
Reimplemented from VirtualFileMount. Definition at line 24 of file virtualFileMountSystem.cxx. |