virtualFileMount.cxx 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Filename: virtualFileMount.cxx
  2. // Created by: drose (03Aug02)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001, 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://www.panda3d.org/license.txt .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #include "virtualFileMount.h"
  19. TypeHandle VirtualFileMount::_type_handle;
  20. ////////////////////////////////////////////////////////////////////
  21. // Function: VirtualFileMount::Destructor
  22. // Access: Public, Virtual
  23. // Description:
  24. ////////////////////////////////////////////////////////////////////
  25. VirtualFileMount::
  26. ~VirtualFileMount() {
  27. }
  28. ////////////////////////////////////////////////////////////////////
  29. // Function: VirtualFileMount::output
  30. // Access: Public, Virtual
  31. // Description:
  32. ////////////////////////////////////////////////////////////////////
  33. void VirtualFileMount::
  34. output(ostream &out) const {
  35. out << get_physical_filename();
  36. }
  37. ////////////////////////////////////////////////////////////////////
  38. // Function: VirtualFileMount::write
  39. // Access: Public, Virtual
  40. // Description:
  41. ////////////////////////////////////////////////////////////////////
  42. void VirtualFileMount::
  43. write(ostream &out) const {
  44. out << get_physical_filename() << " on /" << get_mount_point() << "\n";
  45. }