Panda3D
 All Classes Functions Variables Enumerations
virtualFileSimple.I
1 // Filename: virtualFileSimple.I
2 // Created by: drose (03Aug02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: VirtualFileSimple::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE VirtualFileSimple::
22 VirtualFileSimple(VirtualFileMount *mount, const Filename &local_filename,
23  bool implicit_pz_file, int open_flags) :
24  _mount(mount),
25  _local_filename(local_filename),
26  _implicit_pz_file(implicit_pz_file),
27  _open_flags(open_flags)
28 {
29 }
30 
31 ////////////////////////////////////////////////////////////////////
32 // Function: VirtualFileSimple::get_mount
33 // Access: Published, Virtual
34 // Description: Returns the VirtualFileMount this file is associated
35 // with.
36 ////////////////////////////////////////////////////////////////////
38 get_mount() const {
39  return _mount;
40 }
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: VirtualFileSimple::is_implicit_pz_file
44 // Access: Published
45 // Description: Returns true if this file is a .pz file that should
46 // be implicitly decompressed on load, or false if it is
47 // not a .pz file or if it should not be decompressed.
48 ////////////////////////////////////////////////////////////////////
49 INLINE bool VirtualFileSimple::
51  return _implicit_pz_file;
52 }
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:44
VirtualFileMount * get_mount() const
Returns the VirtualFileMount this file is associated with.
The abstract base class for a mount definition used within a VirtualFileSystem.