Panda3D

Loading...
Searching...
No Matches
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 */
17INLINE VirtualFileMount::
18VirtualFileMount() :
19 _file_system(nullptr),
20 _mount_flags(0)
21{
22}
23
24/**
25 * Returns the file system this mount object is attached to.
26 */
27INLINE VirtualFileSystem *VirtualFileMount::
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 */
37INLINE 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 */
46INLINE int VirtualFileMount::
47 get_mount_flags() const {
48 return _mount_flags;
49}
50
51
52INLINE std::ostream &
53operator << (std::ostream &out, const VirtualFileMount &mount) {
54 mount.output(out);
55 return out;
56}
Filename
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
VirtualFileMount
The abstract base class for a mount definition used within a VirtualFileSystem.
Definition virtualFileMount.h:31
VirtualFileMount::get_mount_flags
int get_mount_flags() const
Returns the set of flags passed by the user to the VirtualFileSystem::mount() command.
Definition virtualFileMount.I:47
VirtualFileMount::get_mount_point
const Filename & get_mount_point() const
Returns the name of the directory within the virtual file system that this mount object is attached t...
Definition virtualFileMount.I:38
VirtualFileMount::get_file_system
VirtualFileSystem * get_file_system() const
Returns the file system this mount object is attached to.
Definition virtualFileMount.I:28