Panda3D
|
00001 // Filename: virtualFileMount.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: VirtualFileMount::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE VirtualFileMount:: 00022 VirtualFileMount() : 00023 _file_system(NULL), 00024 _mount_flags(0) 00025 { 00026 } 00027 00028 //////////////////////////////////////////////////////////////////// 00029 // Function: VirtualFileMount::get_file_system 00030 // Access: Public 00031 // Description: Returns the file system this mount object is attached 00032 // to. 00033 //////////////////////////////////////////////////////////////////// 00034 INLINE VirtualFileSystem *VirtualFileMount:: 00035 get_file_system() const { 00036 return _file_system; 00037 } 00038 00039 00040 //////////////////////////////////////////////////////////////////// 00041 // Function: VirtualFileMount::get_mount_point 00042 // Access: Public 00043 // Description: Returns the name of the directory within the virtual 00044 // file system that this mount object is attached to. 00045 // This directory name will end with a slash. 00046 //////////////////////////////////////////////////////////////////// 00047 INLINE const Filename &VirtualFileMount:: 00048 get_mount_point() const { 00049 return _mount_point; 00050 } 00051 00052 //////////////////////////////////////////////////////////////////// 00053 // Function: VirtualFileMount::get_mount_flags 00054 // Access: Public 00055 // Description: Returns the set of flags passed by the user to the 00056 // VirtualFileSystem::mount() command. 00057 //////////////////////////////////////////////////////////////////// 00058 INLINE int VirtualFileMount:: 00059 get_mount_flags() const { 00060 return _mount_flags; 00061 } 00062 00063 00064 INLINE ostream & 00065 operator << (ostream &out, const VirtualFileMount &mount) { 00066 mount.output(out); 00067 return out; 00068 }