virtualFileSimple.I 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // Filename: virtualFileSimple.I
  2. // Created by: drose (03Aug02)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function: VirtualFileSimple::Constructor
  20. // Access: Public
  21. // Description:
  22. ////////////////////////////////////////////////////////////////////
  23. INLINE VirtualFileSimple::
  24. VirtualFileSimple(VirtualFileMount *mount, const Filename &local_filename,
  25. bool implicit_pz_file) :
  26. _mount(mount),
  27. _local_filename(local_filename),
  28. _implicit_pz_file(implicit_pz_file)
  29. {
  30. }
  31. ////////////////////////////////////////////////////////////////////
  32. // Function: VirtualFileSimple::is_implicit_pz_file
  33. // Access: Published
  34. // Description: Returns true if this file is a .pz file that should
  35. // be implicitly decompressed on load, or false if it is
  36. // not a .pz file or if it should not be decompressed.
  37. ////////////////////////////////////////////////////////////////////
  38. INLINE bool VirtualFileSimple::
  39. is_implicit_pz_file() const {
  40. return _implicit_pz_file;
  41. }