00001 // Filename: virtualFileSimple.I 00002 // Created by: drose (03Aug02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: VirtualFileSimple::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE VirtualFileSimple:: 00022 VirtualFileSimple(VirtualFileMount *mount, const Filename &local_filename, 00023 bool implicit_pz_file, int open_flags) : 00024 _mount(mount), 00025 _local_filename(local_filename), 00026 _implicit_pz_file(implicit_pz_file), 00027 _open_flags(open_flags) 00028 { 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: VirtualFileSimple::get_mount 00033 // Access: Published, Virtual 00034 // Description: Returns the VirtualFileMount this file is associated 00035 // with. 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE VirtualFileMount *VirtualFileSimple:: 00038 get_mount() const { 00039 return _mount; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: VirtualFileSimple::is_implicit_pz_file 00044 // Access: Published 00045 // Description: Returns true if this file is a .pz file that should 00046 // be implicitly decompressed on load, or false if it is 00047 // not a .pz file or if it should not be decompressed. 00048 //////////////////////////////////////////////////////////////////// 00049 INLINE bool VirtualFileSimple:: 00050 is_implicit_pz_file() const { 00051 return _implicit_pz_file; 00052 }