#include <virtualFileMount.h>
Inheritance diagram for VirtualFileMount:
Public Member Functions | |
VirtualFileMount (VirtualFileSystem *file_system, const Filename &physical_filename, const Filename &mount_point, int mount_flags) | |
virtual | ~VirtualFileMount () |
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 bool | has_file (const Filename &file) const=0 |
virtual bool | is_directory (const Filename &file) const=0 |
virtual bool | is_regular_file (const Filename &file) const=0 |
virtual istream * | open_read_file (const Filename &file) const=0 |
virtual bool | scan_directory (vector_string &contents, const Filename &dir) const=0 |
virtual void | output (ostream &out) const |
virtual void | write (ostream &out) const |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
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 |
Normally users don't need to monkey with this class directly.
Definition at line 44 of file virtualFileMount.h.
|
Definition at line 32 of file virtualFileMount.I. |
|
Definition at line 36 of file virtualFileMount.cxx. References get_physical_filename(). |
|
Implements TypedObject. Reimplemented in VirtualFileMountMultifile, and VirtualFileMountSystem. Definition at line 80 of file virtualFileMount.h. |
|
Reimplemented from TypedObject. Reimplemented in VirtualFileMountMultifile, and VirtualFileMountSystem. Definition at line 81 of file virtualFileMount.h. |
|
Returns the file system this mount object is attached to.
Definition at line 54 of file virtualFileMount.I. References _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 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 output(), and ~VirtualFileMount(). |
|
Implements TypedObject. Reimplemented in VirtualFileMountMultifile, and VirtualFileMountSystem. Definition at line 77 of file virtualFileMount.h. |
|
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. |
|
Implemented in VirtualFileMountMultifile, and VirtualFileMountSystem. |
|
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 TypedObject. Reimplemented in VirtualFileMountMultifile, and VirtualFileMountSystem. Definition at line 84 of file virtualFileMount.h. Referenced by VirtualFileMountSystem::get_type(), and VirtualFileMountMultifile::get_type(). |
|
Implemented in VirtualFileMountMultifile, and VirtualFileMountSystem. |
|
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(). |
|
|
Implemented in VirtualFileMountMultifile, and VirtualFileMountSystem. |
|
Implemented in VirtualFileMountMultifile, and VirtualFileMountSystem. Referenced by VirtualFileSimple::is_directory(). |
|
Definition at line 48 of file virtualFileMount.cxx. References get_mount_point(), and get_physical_filename(). |
|
Implemented in VirtualFileMountMultifile, and VirtualFileMountSystem. Referenced by VirtualFileSimple::is_regular_file(). |
|
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 get_file_system(), VirtualFileMountSystem::has_file(), VirtualFileMountSystem::is_directory(), and VirtualFileMountSystem::open_read_file(). |
|
Reimplemented from TypedObject. Reimplemented in VirtualFileMountMultifile, and VirtualFileMountSystem. Definition at line 24 of file virtualFileMount.cxx. |