Panda3D

virtualFileSimple.I

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) :
00024   _mount(mount),
00025   _local_filename(local_filename),
00026   _implicit_pz_file(implicit_pz_file)
00027 {
00028 }
00029 
00030 ////////////////////////////////////////////////////////////////////
00031 //     Function: VirtualFileSimple::get_mount
00032 //       Access: Published, Virtual
00033 //  Description: Returns the VirtualFileMount this file is associated
00034 //               with.
00035 ////////////////////////////////////////////////////////////////////
00036 INLINE VirtualFileMount *VirtualFileSimple::
00037 get_mount() const {
00038   return _mount;
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: VirtualFileSimple::is_implicit_pz_file
00043 //       Access: Published
00044 //  Description: Returns true if this file is a .pz file that should
00045 //               be implicitly decompressed on load, or false if it is
00046 //               not a .pz file or if it should not be decompressed.
00047 ////////////////////////////////////////////////////////////////////
00048 INLINE bool VirtualFileSimple::
00049 is_implicit_pz_file() const {
00050   return _implicit_pz_file;
00051 }
 All Classes Functions Variables Enumerations