Panda3D
 All Classes Functions Variables Enumerations
virtualFileMount.I
1 // Filename: virtualFileMount.I
2 // Created by: drose (03Aug02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: VirtualFileMount::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE VirtualFileMount::
22 VirtualFileMount() :
23  _file_system(NULL),
24  _mount_flags(0)
25 {
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: VirtualFileMount::get_file_system
30 // Access: Public
31 // Description: Returns the file system this mount object is attached
32 // to.
33 ////////////////////////////////////////////////////////////////////
35 get_file_system() const {
36  return _file_system;
37 }
38 
39 
40 ////////////////////////////////////////////////////////////////////
41 // Function: VirtualFileMount::get_mount_point
42 // Access: Public
43 // Description: Returns the name of the directory within the virtual
44 // file system that this mount object is attached to.
45 // This directory name will end with a slash.
46 ////////////////////////////////////////////////////////////////////
47 INLINE const Filename &VirtualFileMount::
48 get_mount_point() const {
49  return _mount_point;
50 }
51 
52 ////////////////////////////////////////////////////////////////////
53 // Function: VirtualFileMount::get_mount_flags
54 // Access: Public
55 // Description: Returns the set of flags passed by the user to the
56 // VirtualFileSystem::mount() command.
57 ////////////////////////////////////////////////////////////////////
58 INLINE int VirtualFileMount::
59 get_mount_flags() const {
60  return _mount_flags;
61 }
62 
63 
64 INLINE ostream &
65 operator << (ostream &out, const VirtualFileMount &mount) {
66  mount.output(out);
67  return out;
68 }
const Filename & get_mount_point() const
Returns the name of the directory within the virtual file system that this mount object is attached t...
A hierarchy of directories and files that appears to be one continuous file system, even though the files may originate from several different sources that may not be related to the actual OS&#39;s file system.
bool mount(Multifile *multifile, const Filename &mount_point, int flags)
Mounts the indicated Multifile at the given mount point.
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
VirtualFileSystem * get_file_system() const
Returns the file system this mount object is attached to.
The abstract base class for a mount definition used within a VirtualFileSystem.
int get_mount_flags() const
Returns the set of flags passed by the user to the VirtualFileSystem::mount() command.