Panda3D
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  */
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::
41  return _implicit_pz_file;
42 }
VirtualFileMount * get_mount() const
Returns the VirtualFileMount this file is associated with.
bool is_implicit_pz_file() const
Returns true if this file is a .pz file that should be implicitly decompressed on load,...
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.