virtualFileList.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Filename: virtualFileList.h
  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. #ifndef VIRTUALFILELIST_H
  19. #define VIRTUALFILELIST_H
  20. #include "pandabase.h"
  21. #include "virtualFile.h"
  22. #include "pointerTo.h"
  23. ////////////////////////////////////////////////////////////////////
  24. // Class : VirtualFileList
  25. // Description : A list of VirtualFiles, as returned by
  26. // VirtualDirectory::scan().
  27. ////////////////////////////////////////////////////////////////////
  28. class EXPCL_PANDAEXPRESS VirtualFileList : public ReferenceCount {
  29. public:
  30. INLINE VirtualFileList();
  31. PUBLISHED:
  32. INLINE ~VirtualFileList();
  33. public:
  34. INLINE void add_file(VirtualFile *file);
  35. PUBLISHED:
  36. INLINE int get_num_files() const;
  37. INLINE VirtualFile *get_file(int n) const;
  38. private:
  39. typedef pvector< PT(VirtualFile) > Files;
  40. Files _files;
  41. };
  42. #include "virtualFileList.I"
  43. #endif