00001 // Filename: virtualFileList.h 00002 // Created by: drose (03Aug02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef VIRTUALFILELIST_H 00020 #define VIRTUALFILELIST_H 00021 00022 #include "pandabase.h" 00023 00024 #include "virtualFile.h" 00025 #include "pointerTo.h" 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : VirtualFileList 00029 // Description : A list of VirtualFiles, as returned by 00030 // VirtualDirectory::scan(). 00031 //////////////////////////////////////////////////////////////////// 00032 class EXPCL_PANDAEXPRESS VirtualFileList : public ReferenceCount { 00033 public: 00034 INLINE VirtualFileList(); 00035 00036 PUBLISHED: 00037 INLINE ~VirtualFileList(); 00038 00039 public: 00040 INLINE void add_file(VirtualFile *file); 00041 00042 PUBLISHED: 00043 INLINE int get_num_files() const; 00044 INLINE VirtualFile *get_file(int n) const; 00045 00046 private: 00047 typedef pvector< PT(VirtualFile) > Files; 00048 Files _files; 00049 }; 00050 00051 #include "virtualFileList.I" 00052 00053 #endif