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 */
28get_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 */
38get_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 */
47get_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}
The name of a file, such as a texture file or an Egg file.
Definition filename.h:44
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.
const Filename & get_mount_point() const
Returns the name of the directory within the virtual file system that this mount object is attached t...
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,...