// Filename: virtualFileSimple.I // Created by: drose (03Aug02) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// // Function: VirtualFileSimple::Constructor // Access: Public // Description: //////////////////////////////////////////////////////////////////// INLINE VirtualFileSimple:: VirtualFileSimple(VirtualFileMount *mount, const Filename &local_filename, bool implicit_pz_file) : _mount(mount), _local_filename(local_filename), _implicit_pz_file(implicit_pz_file) { } //////////////////////////////////////////////////////////////////// // Function: VirtualFileSimple::get_mount // Access: Published, Virtual // Description: Returns the VirtualFileMount this file is associated // with. //////////////////////////////////////////////////////////////////// INLINE VirtualFileMount *VirtualFileSimple:: get_mount() const { return _mount; } //////////////////////////////////////////////////////////////////// // Function: VirtualFileSimple::is_implicit_pz_file // Access: Published // Description: Returns true if this file is a .pz file that should // be implicitly decompressed on load, or false if it is // not a .pz file or if it should not be decompressed. //////////////////////////////////////////////////////////////////// INLINE bool VirtualFileSimple:: is_implicit_pz_file() const { return _implicit_pz_file; }