Panda3D
virtualFileMount.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file virtualFileMount.I
10  * @author drose
11  * @date 2002-08-03
12  */
13 
14 /**
15  *
16  */
17 INLINE VirtualFileMount::
18 VirtualFileMount() :
19  _file_system(nullptr),
20  _mount_flags(0)
21 {
22 }
23 
24 /**
25  * Returns the file system this mount object is attached to.
26  */
28 get_file_system() const {
29  return _file_system;
30 }
31 
32 
33 /**
34  * Returns the name of the directory within the virtual file system that this
35  * mount object is attached to. This directory name will end with a slash.
36  */
37 INLINE const Filename &VirtualFileMount::
38 get_mount_point() const {
39  return _mount_point;
40 }
41 
42 /**
43  * Returns the set of flags passed by the user to the
44  * VirtualFileSystem::mount() command.
45  */
46 INLINE int VirtualFileMount::
47 get_mount_flags() const {
48  return _mount_flags;
49 }
50 
51 
52 INLINE std::ostream &
53 operator << (std::ostream &out, const VirtualFileMount &mount) {
54  mount.output(out);
55  return out;
56 }
VirtualFileSystem * get_file_system() const
Returns the file system this mount object is attached to.
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.
const Filename & get_mount_point() const
Returns the name of the directory within the virtual file system that this mount object is attached t...
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:39
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.