Panda3D
panda
src
express
virtualFileSimple.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 virtualFileSimple.I
10
* @author drose
11
* @date 2002-08-03
12
*/
13
14
/**
15
*
16
*/
17
INLINE VirtualFileSimple::
18
VirtualFileSimple(
VirtualFileMount
*mount,
const
Filename
&local_filename,
19
bool
implicit_pz_file,
int
open_flags) :
20
_mount(mount),
21
_local_filename(local_filename),
22
_implicit_pz_file(implicit_pz_file)
23
{
24
}
25
26
/**
27
* Returns the VirtualFileMount this file is associated with.
28
*/
29
INLINE
VirtualFileMount
*
VirtualFileSimple::
30
get_mount
()
const
{
31
return
_mount;
32
}
33
34
/**
35
* Returns true if this file is a .pz file that should be implicitly
36
* decompressed on load, or false if it is not a .pz file or if it should not
37
* be decompressed.
38
*/
39
INLINE
bool
VirtualFileSimple::
40
is_implicit_pz_file
()
const
{
41
return
_implicit_pz_file;
42
}
VirtualFileMount
The abstract base class for a mount definition used within a VirtualFileSystem.
Definition:
virtualFileMount.h:31
VirtualFileSimple::is_implicit_pz_file
bool is_implicit_pz_file() const
Returns true if this file is a .pz file that should be implicitly decompressed on load,...
Definition:
virtualFileSimple.I:40
VirtualFileSimple::get_mount
VirtualFileMount * get_mount() const
Returns the VirtualFileMount this file is associated with.
Definition:
virtualFileSimple.I:30
Filename
The name of a file, such as a texture file or an Egg file.
Definition:
filename.h:39
Generated on Sun Dec 27 2020 13:22:58 for Panda3D by
1.8.20