#include <virtualFileSystem.h>
Public Member Functions | |
| INLINE bool | read_file (const Filename &filename, string &result) const |
| void | scan_mount_points (vector_string &names, const Filename &path) const |
Private Types | |
| typedef pvector< VirtualFileMount * > | Mounts |
| enum | MountFlags { MF_owns_pointer = 0x0001, MF_read_only = 0x0002 } |
Private Member Functions | |
| ~VirtualFileSystem () | |
| bool | mount (Multifile *multifile, const string &mount_point, int flags) |
| bool | mount (const Filename &physical_filename, const string &mount_point, int flags) |
| int | unmount (Multifile *multifile) |
| int | unmount (const Filename &physical_filename) |
| int | unmount_point (const string &mount_point) |
| int | unmount_all () |
| bool | chdir (const string &new_directory) |
| const Filename & | get_cwd () const |
| PT (VirtualFile) get_file(const Filename &filename) const | |
| PT (VirtualFile) find_file(const Filename &filename | |
| bool | resolve_filename (Filename &filename, const DSearchPath &searchpath, const string &default_extension=string()) const |
| int | find_all_files (const Filename &filename, const DSearchPath &searchpath, DSearchPath::Results &results) const |
| INLINE bool | exists (const Filename &filename) const |
| INLINE bool | is_directory (const Filename &filename) const |
| INLINE bool | is_regular_file (const Filename &filename) const |
| INLINE void | ls (const string &filename) const |
| INLINE void | ls_all (const string &filename) const |
| void | write (ostream &out) const |
| INLINE string | read_file (const Filename &filename) const |
| INLINE istream * | open_read_file (const Filename &filename) const |
| Filename | normalize_mount_point (const string &mount_point) const |
| bool | found_match (PT(VirtualFile)&found_file, VirtualFileComposite *&composite_file, VirtualFileMount *mount, const string &local_filename) const |
Static Private Member Functions | |
| VirtualFileSystem * | get_global_ptr () |
Private Attributes | |
| PUBLISHED | __pad0__: VirtualFileSystem() |
| const DSearchPath &searchpath | const |
| Mounts | _mounts |
| Filename | _cwd |
Static Private Attributes | |
| VirtualFileSystem * | _global_ptr = NULL |
|
|
Definition at line 98 of file virtualFileSystem.h. |
|
|
Definition at line 51 of file virtualFileSystem.h. |
|
|
Definition at line 48 of file virtualFileSystem.cxx. References unmount_all(). |
|
|
Definition at line 250 of file virtualFileSystem.cxx. References _cwd, NULL, and PT(). Referenced by get_global_ptr(). |
|
|
Referenced by find_all_files(), Loader::find_all_files(), load_egg_file(), BamFile::open_read(), EggData::resolve_egg_filename(), and resolve_filename(). |
|
||||||||||||||||
|
Definition at line 433 of file virtualFileSystem.cxx. References exists(). Referenced by Loader::find_all_files(). |
|
||||||||||||||||||||
|
Definition at line 638 of file virtualFileSystem.cxx. References VirtualFileComposite::add_component(), VirtualFile::get_filename(), VirtualFileMount::is_directory(), and NULL. |
|
|
Definition at line 271 of file virtualFileSystem.cxx. References _cwd. |
|
|
Definition at line 491 of file virtualFileSystem.cxx. References _global_ptr, chdir(), mount(), and NULL. Referenced by Loader::find_all_files(), load_chancfg_database(), load_egg_file(), FontPool::lookup_filename(), PNMImageHeader::make_reader(), TexturePool::ns_has_texture(), TexturePool::ns_load_texture(), DatagramInputFile::open(), BamFile::open_read(), EggData::read(), and EggData::resolve_egg_filename(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 85 of file virtualFileSystem.cxx. References _mounts, MF_owns_pointer, MF_read_only, mount(), normalize_mount_point(), and Multifile::open_read(). |
|
||||||||||||||||
|
Definition at line 61 of file virtualFileSystem.cxx. References _mounts, mount(), and normalize_mount_point(). Referenced by get_global_ptr(), mount(), scan_mount_points(), unmount(), unmount_all(), unmount_point(), and write(). |
|
|
Definition at line 615 of file virtualFileSystem.cxx. References _cwd. Referenced by mount(), and unmount_point(). |
|
|
Referenced by load_chancfg_database(), load_egg_file(), PNMImageHeader::make_reader(), and EggData::read(). |
|
|
|
|
|
Referenced by chdir(), and resolve_filename(). |
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 378 of file virtualFileSystem.cxx. References exists(), and PT(). Referenced by load_chancfg_database(), FontPool::lookup_filename(), TexturePool::ns_has_texture(), TexturePool::ns_load_texture(), and EggData::resolve_egg_filename(). |
|
||||||||||||
|
Definition at line 574 of file virtualFileSystem.cxx. References _mounts, VirtualFileMount::get_mount_point(), and mount(). Referenced by PT(). |
|
|
Definition at line 166 of file virtualFileSystem.cxx. |
|
|
Definition at line 128 of file virtualFileSystem.cxx. References _mounts, DCAST, VirtualFileMountMultifile::get_class_type(), VirtualFileMountMultifile::get_multifile(), and mount(). |
|
|
Definition at line 226 of file virtualFileSystem.cxx. References _mounts, and mount(). Referenced by ~VirtualFileSystem(). |
|
|
Definition at line 196 of file virtualFileSystem.cxx. References _mounts, mount(), and normalize_mount_point(). |
|
|
Definition at line 467 of file virtualFileSystem.cxx. References _mounts, mount(), and VirtualFileMount::write(). |
|
|
Definition at line 48 of file virtualFileSystem.h. |
|
|
Definition at line 100 of file virtualFileSystem.h. Referenced by chdir(), get_cwd(), and normalize_mount_point(). |
|
|
Definition at line 29 of file virtualFileSystem.cxx. Referenced by get_global_ptr(). |
|
|
Definition at line 99 of file virtualFileSystem.h. Referenced by mount(), scan_mount_points(), unmount(), unmount_all(), unmount_point(), and write(). |
|
|
Definition at line 68 of file virtualFileSystem.h. |
1.3